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.

link|improve this question
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.

3 Answers

up vote 2 down vote accepted

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/

link|improve this answer
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.

link|improve this answer
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.

link|improve this answer
feedback

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