Possible Duplicate:
How does Subnetting Work?
IP addresses and geographical locations

How does my IP address get assigned to me? Is there any ordering? For instance by time or by location or by queue? Who divvies up the IP addresses at each level, and what method do they use?

What do the individual parts of the IP address mean? (ex. Does it move from least geographically specific at the left to most at the right?

I'm especially interested in understand the correlation between geographic location and IP address.

marked as duplicate by Zoredache, Chris S, Chopper3 Dec 9 '10 at 17:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Dec 9 '10 at 17:37

This question came from our site for professional and enthusiast programmers.

  • It's too broad, do you mean IP address as in the whole internet or your local LAN? – The Elite Gentleman Dec 9 '10 at 17:37
  • Part of your question (Geo-location) is answered here: serverfault.com/questions/86793/… – l0c0b0x Dec 9 '10 at 18:00

They don't really mean anything. There are certain reserved blocks, which are good to know

The following are reserved for "private" networks. These only ever apply in LAN/WAN environments.

  • –
  • –
  • –

The following addresses only ever apply to the local machine (the Loopback addresses):

  • (addresses other than are seldom used).

The block is reserved for the "default route", for routing purposes.

Inversely and is used to signify broadcasting on all routes.

The - block is reserved for Automatic Private IP Addressing

There are a number of other addresses that are reserved for INCAN, ARIN, etc. A partial list can be found here.

  • That's a great start, but can you also comment on the method by which IP addresses are assigned? For instance, I know that someone gets a "block" of IP addresses from someone else. And then someone divvies them up and gives me one. Who are all the someones and what method do they use to divvy up addresses? – John Berryman Dec 9 '10 at 17:59
  • @John Berryman, IANA is the from (iana.org) and subnetting is the how serverfault.com/questions/49765/how-does-subnetting-work. – Zoredache Dec 9 '10 at 18:24
  • @John Berryman: It's pretty much random. Your ISP has a certain block of addresses, and they assign them in smaller blocks to roughly geographic areas. But another ISP may have a contiguous block that they assign to a totally different area. And both can reassign the blocks pretty much at will if they need to. If you want to know what block is in what area, you can check an IP Geolocation database: ipinfodb.com/ip_database.php but they're assembled from reported/researched data, not from any over-riding algorithm. – Satanicpuppy Dec 9 '10 at 23:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.