Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

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. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

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/

share|improve this answer
add comment

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

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