What Is IP Geolocation and How Accurate Is It?

Online Privacy6 min read
Map with a location pin and a wide circle showing the approximate area of an IP lookup

You have probably seen a website greet you with the name of a nearby city, show prices in your local currency or block a video "in your region". These features often rely on IP geolocation: estimating where a device is from its IP address. It is useful, but also frequently misunderstood. An IP address contains no location information at all, so every result is an educated guess. This article explains how the guess is made and how far you can trust it.

What IP geolocation is

IP geolocation is the practice of mapping an IP address to a geographic location such as a country, region, city, postal code or coordinates, and to related details like the internet provider, time zone and connection type. Unlike a phone's GPS, it does not measure where your device is. It looks up the address in a database that someone has built from indirect evidence.

Where the data comes from

Geolocation providers combine several sources:

  • Regional internet registries. Organizations such as ARIN, RIPE NCC and APNIC publish who received each block of addresses, often with a country and a postal address of the organization, which may be a headquarters far away from the users.
  • Routing information. BGP data reveals which network announces a block and how traffic reaches it (see How Does Internet Routing Work?).
  • Latency measurements. Probes from known locations measure round-trip times, which limit how far away a device can be.
  • Provider data. Some internet providers share which address ranges serve which cities.
  • User-submitted and commercial data. Location signals from apps and websites where users have agreed to share location can be tied to addresses.
  • Reverse DNS hints. Router host names sometimes include airport or city codes.

The vendor merges these inputs with statistical models and publishes a database, which services query through an API. Different vendors reach different answers for the same address, which is why two lookup tools sometimes disagree.

How accurate is it?

Accuracy depends strongly on the level of detail:

LevelTypical reliability
CountryVery high; commercial vendors commonly claim well above 95 percent
Region or stateGood, but noticeably lower than country
CityVariable; often right in cities served by local providers, frequently wrong on mobile or rural networks
Street or householdNot possible with IP data alone

Exact figures vary by vendor, country and the type of network, and vendors' own accuracy claims are not independently verified in a consistent way. The reliable takeaway is that country is dependable, city is a rough hint, and a precise address is out of reach.

Why results go wrong

  • Mobile networks. Phone traffic often exits to the internet from a central gateway that can be hundreds of kilometres from the user.
  • Carrier-grade NAT. When many customers share one address, the address cannot represent a single place; see What Is NAT?
  • VPNs and proxies. They show the location of the server instead of yours (explained in What Is a VPN?).
  • Corporate and cloud networks. A company's traffic may exit at its head office, and cloud servers sit in data centers.
  • Re-assigned address blocks. Addresses move between providers and regions, and databases lag behind.
  • Default locations. When a database knows only a country, it may place the address at the country's center point. In 2016, reports showed that a very large number of US addresses had been mapped to the geographic center of the country, which happened to be a private property in Kansas, and the residents were wrongly accused and harassed for years.

What it is used for

Legitimate uses include showing content in the right language, applying regional laws and tax rules, licensing restrictions for streaming and sport, fraud detection (a login from a different continent minutes after another one looks suspicious), ad targeting, and analytics. These uses tolerate error. Using IP geolocation to find or confront a particular person is unreliable and dangerous.

Privacy considerations

Because the location is approximate, IP geolocation is less sensitive than precise GPS data, but it still contributes to profiling when combined with other signals, as described in How Websites Track Visitors. If you want to reduce what sites infer, a VPN can change the apparent location, although accounts and device details may still reveal more (see Does a VPN Really Hide Your IP Address?). Browsers also ask separately for permission before sharing precise location from Wi-Fi and GPS, which is far more accurate than IP data.

See it for yourself

Open the stor10 IP lookup and compare the map with your real position. Try a different network, such as mobile data, and note how the result changes. We label the map as approximate for exactly this reason.

Conclusion

IP geolocation estimates where an address is used by combining registry records, routing data, measurements and commercial inputs. It is accurate enough for country-level decisions and rough regional hints, but unreliable for city-level precision and unable to find a household. Treat any result as a clue, never as proof of location.

Frequently asked questions

Why does my location show the wrong city?

Your provider may route traffic through a gateway in another city, or the database may be outdated or based on the provider's registered address.

Can I change my IP location?

Yes, a VPN or proxy shows the location of its server. Changing it does not alter your GPS-based location in apps.