Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a list, 0-255, which tells the country by the first byte of an IP address. for example 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.

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:

share|improve this answer

Can't be done -- /8 netblocks are allocated by IANA at the level of continents, not countries. is allocated to RIPE, so it covers Europe. There's a list here.

share|improve this answer

IANA holds a list of IP blocks and which registry they are allocated to:

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:

It may take a little googling to find the list for each registry.

share|improve this answer

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