I'm looking for a list, 0-255, which tells the country by the first byte of an IP address. for example 81.0.0.0 here 81 is a country code which I need to know.
|
| ||||
|
feedback
|
closed as not a real question by Tom Wijsman, ChrisF, studiohack♦ Mar 28 '11 at 21:39
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.
|
There is no such list. IP addresses are not allocated necessarily by country, but by ISP (and may be used internationally) - even so the /8 netblocks are continental. There are some that maintain lists for each numbers authority, however, and it may be helpful to you. A list is available here: http://www.nirsoft.net/countryip/ | |||
|
feedback
|
|
Can't be done -- /8 netblocks are allocated by IANA at the level of continents, not countries. 81.0.0.0/8 is allocated to RIPE, so it covers Europe. There's a list here. | |||
|
feedback
|
|
IANA holds a list of IP blocks and which registry they are allocated to: http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xml From there you can check each registry for a list of IP blocks within their ranges and which countries (and sometimes even ISPs) they are delegated to. For example, the APNIC registry (Asia & Pacific) has this list: http://ftp.apnic.net/stats/apnic/ It may take a little googling to find the list for each registry. | |||
|
feedback
|
