Link to home
Start Free TrialLog in
Avatar of sumitshah4u
sumitshah4u

asked on

I want list of range of IP Addresses for each country.

Dear Sirs,

I want list of range of IP Addresses for each country. Please advice me where can i find it. It can be in text file format with range of IP Addresses for each country and the country name written beside it.

I am working on an application and i will requrie it for moving on.

Please help me.

Regards,
Sumit Shah.
Avatar of collins23
collins23

tried asking NIC the guys who give out ip adds?
NIC stands for network information centre -they are the central authority for giving out ip adds
you could also try the internet assigned numbers authority IANA website
Avatar of sumitshah4u

ASKER

I emailed the guys at NIC, but i dont think they will entertain such queries.

Please find something solid

Sumit.
Not easy as IP's are assigned to companies, and not neccessarily direct to countries. For example arpanic are assigned a block of numbers which could in any of a number of countries.

Also a quick trace on this server shows the following two relays either side of the pond
212.187.128.25 London  and 212.187.128.153 New York

You may find it better to do a reverse IP lookup.

Stuart
I know for sure that there exists a mechanism to trace the country origin from the IP Address. There are many sites that trace your ip address and greet you by saying "you are a visitor from "so-and-so" country and it comes out to be true. I have tested it whenever i go to different countries.

Please comment.
This will not give you a list of IP based per country, but you may find it will give you what you need if you cant find that list.  www.visualroute.com
I think you'll find that the country information comes from your browser, if you install a US version of windows/IE on a machine in Norway it will be picked up incorrectly.

As far as I know there is no conclusive way of identifying the country of origin for an IP address.
The only (reliable) way of finding the country of origin of an IP address is to query a DNS using reverse IP lookup AFAIK.

You may be able to strip the IP address and submit a whois query, but as I stated earlier that may not be fully conclusive.

Stuart
Ip addresses are not assigned based on country.  I work for a business that has one domain of ip addresses, yet they are all over the world.  And to make things worse, some of their sites use internal private IP's.  The best you can hope for is if the last hop router's header gives a location.  I think that is how the trace programs decide on location.  However, companies typically keep that info blank, for security reasons.  
IP addresses are not assigned per country. Unlike phone numbers, there is no geographical boundary to where IP numbers can appear. There are some efforts to manually map IP addresses to countries. Go to this link for more info:

http://www.dhnsstuff.com and click on the NetGeo IP Lookup.
aren't ip addresses assigned to top level domains?(.ru .cz .uk etc)   I don't know for a fact but couldn't you somehow query the top level domains for the assigned ip address to the top level domains DNS?

Kris
I am sure some countries have their own Class A address, but that would not really help you narrow it down any farther than maybe being able to pick out a few addresses are from say russia, and a few are from say france.  And again, the point that most large companies, are using pvt addressing.  So each ip on their AI could be anywhere and you would never know.  All you would see is the gateway.
I think after all the answers i got, there can be no list of range of IP Addresses for each country.

But i have seen many softwares and websites avaiable that do it.

Keep trying guys.
Database of country IP addresses by country at http://www.location.com.my/products.asp (bottom of the list).

Search google for "country by ip address" (including the quotes) to see other options (mostly commercial).

No solution is 100% reliable as they all rely on databases (there is no master database available) but add in browser/OS language detection and you might improve the success rate.
I just had a newsletter from an online mag pop into my email box. One of the things mentioned was this program "IP Sniffer".

Here's a download URL http://www.pcpro.co.uk/?http://downloads.pcpro.co.uk/Internet/Networking/ipsniffer-download.html which might give you some ideas in how to do it.

Stuart
stuartv, an ip sniffer is just to sniff out packets.  It's used by hackers, and admin.  They use it to find out information aobut the network their sniffing.
PublicFatality : if you bothered to read the review at the URL, you would find that the program does the task that is required.

I'll quote it here
[quote]
IP Sniffer can convert between IP addresses and domain/host names, and ping IP addresses to find out which country the Internet IP address belongs to. Batch conversion is supported.

The data can be entered directly, imported from txt file, automatically created, and edited at the start of the process. The results can be exported to txt file, generated to an htm report and easily edited.

One domain/host name may be converted into multi-IP address. The converted IP address can be edited and copied in the input box. You can choose from 4 export file types listed in the dialog window. The txt file is the result data and the htm file is the result report.

IP Sniffer can convert all IP addresses of domains which use multi-IP addresses and includes 3 example files in the current directory: Example Host Name.txt, Example IP Addresses.txt and Example (Country From Internet IP).txt.

[/quote]

Please read any refered to URL before making such a dismissive statement.

Stuart
ok stuart i believe you BUT you still need the ip address.  That brings oyu back to square one.  I never tried to dismiss your claim-- if you reread my post you'll see its a description of what a packet sniffer is.  

btw, any good packet sniffer can do that... its acutally a fucntion of a whois command
I still say it is goning to be scatchy at best.
sumitshah4u:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
ASKER CERTIFIED SOLUTION
Avatar of SpazMODic
SpazMODic

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial