basireid Posted June 7, 2010 Share Posted June 7, 2010 a few days ago, i read online somewhere about the coming shortage of available ip addresses as i did some searching at the time regarding a php file i was working on, for a fun project, and to learn, i made a file that generates random ip addresses, to then click on... anyway, the numbers are in groups of four and only go as high as 255... does anyone know more as to why they only go so high? at the time, years ago, they must have figured there would be plenty, until the development of handheld devices that also use ip addresses... so my question, why not drop the limit of 255 for each subgroup and go higher, even to 999? maybe there are some here who will decipher what i am trying to say here and for the code i worked out, i am still not sure what forum section to post it under thanks for the time and for the forum, too much to read here and not enough time Quote Link to comment https://forums.phpfreaks.com/topic/204116-thoughts-about-the-ip-addresses-and-coming-shortages/ Share on other sites More sharing options...
Daniel0 Posted June 7, 2010 Share Posted June 7, 2010 Because you can only address 256 different integers using 1 byte. You have 4 byte = 32 bits, which gives you 232 = 4,294,967,296 different IP addresses. Some of the ranges are reserved, so the actual number is lower. Edit: Fixed typo pointed out by Philip. Quote Link to comment https://forums.phpfreaks.com/topic/204116-thoughts-about-the-ip-addresses-and-coming-shortages/#findComment-1069090 Share on other sites More sharing options...
Philip Posted June 7, 2010 Share Posted June 7, 2010 Because you can only address 265 different integers using 1 byte. You have 4 byte = 32 bits, which gives you 232 = 4,294,967,296 different IP addresses. Some of the ranges are reserved, so the actual number is lower. Err 256* Quote Link to comment https://forums.phpfreaks.com/topic/204116-thoughts-about-the-ip-addresses-and-coming-shortages/#findComment-1069092 Share on other sites More sharing options...
Daniel0 Posted June 7, 2010 Share Posted June 7, 2010 Yes. Fixed now Quote Link to comment https://forums.phpfreaks.com/topic/204116-thoughts-about-the-ip-addresses-and-coming-shortages/#findComment-1069093 Share on other sites More sharing options...
Philip Posted June 7, 2010 Share Posted June 7, 2010 Yes. Fixed now I was gunna say, this whole time I was taught wrong!! Kinda offtopic, IPv6... whats the status on that? I haven't heard a lot on it recently... Quote Link to comment https://forums.phpfreaks.com/topic/204116-thoughts-about-the-ip-addresses-and-coming-shortages/#findComment-1069096 Share on other sites More sharing options...
ignace Posted June 7, 2010 Share Posted June 7, 2010 Last I heard was they are not gonna go through with IPv6, so maybe they'll give a.b.c.d/e another shot? Quote Link to comment https://forums.phpfreaks.com/topic/204116-thoughts-about-the-ip-addresses-and-coming-shortages/#findComment-1069133 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.