Do countries have specific IP ranges?

Is there a database for IP addresses?

With an IP address you can locate a given internet user in the world. There are several databases that contain IP addresses at any time for example the ARIN database, RIPE database or APNIC. There are also free databases on the website www.geobytes.com. Many ISPs publish their own tables of assigned ips as well as their own web pages that contain the data. However, it is not possible to use these for any kind of statistics because no information can be added or changed at the same time as some other data. For instance, the IP address of the user may change but the web page of the ISP does not. This happens especially when an ISP changes from using one CPE to another, and the old ip-address is reused by the new CPE. With Geobytes.com the user can set up his/her own subdomain for all his/her websites for each month at his/her own web space. This way he/she can do a query for all sites that have a certain address, and a report will be created with the website name and the registered address plus links.

How do I find the IP range of a country?

This may sound like a simple question, but I have spent hours trying to find out how to find the range of IP addresses of a specific country. In most cases it's easy. For example, to find the range of IP addresses in China:

Ipconfig/all If anyone knows how to find the IP address range of a specific country (not a whole range of countries), please let me know. I would really appreciate it! The IPCountry field is a varchar column containing a comma-delimited list of country codes.

Can the IP address tell which country the device is in?

Maybe. Maybe not. A good device might just have an interface
That's not connected to anything. This sort of works, and is simple to implement in an SDK that uses a C API to send stuff out of and receive stuff from. In a network sniffer, one should record the information sent from the device, and you may figure it out from there. If the device has a lot of data flowing through, and you are running off of an SD card, you can store that information, and replay it if you ever need to, by extracting the bytes and reassembling them. Some software, when connecting, will actually ask you which interface it should use. For example, for the iPhone, the app would ask for WIFI, cellular, etc.

Can't speak for Android, I don't know what they use on that platform, but you might want to use the Wi-Fi name, as it is much less likely to change. You can use ARP / IP to discover a device. You'll get this device to send it a request to tell the address of its MAC and IP address. You'd be able to see the IP address, and then guess at the country from where it came from.

However, this isn't usually trivial. It can still happen, but it's easier to just track the MAC address.

If you're going to spoof the MAC address on a device, this approach is not usually safe, as the user will recognize that it's not their device after a few seconds. That said, some applications do work around this using what are essentially a "fake" MAC address.

If the device has WiFi turned on, you should see the IP address of the WiFi router it is connected to. The IP addresses assigned to the access points are pretty easy to find out, simply search for the word " " or from the web (or just plug the IP into any browser and it should tell you if it knows it).

Related Answers

What are the 5 IP address classes range?

All you need to know is that they are the public IP...

What happens if someone gets my IP address?

Here's how people can find you online. You are browsi...

What are the 3 public IP address ranges?

IPv4 is a 32-bit number. Therefore, the address space avai...