Skip to content
ipaddress.si
Privacy2 min read

How IP geolocation works — and why it's often wrong

Location databases don't know where you are. They know where an address block is probably used. The difference matters.

By ipaddress.si

When a website greets you in the right language or shows prices in your currency, it has probably looked up your IP address in a geolocation database. These databases are useful — and widely misunderstood.

Where the data comes from

No database can see where a device physically is. Instead, providers combine indirect signals:

  • Registry records: the country an address block is registered in, from the regional internet registries.
  • Routing data: which network announces the block and where that network operates.
  • Network measurements: latency from many vantage points; a few milliseconds of delay limits how far away an address can be.
  • Operator-published data: some networks publish geofeeds (RFC 8805) saying where their prefixes are used.
  • Partner and user-submitted data: corrections from network operators and, in commercial products, data from apps and Wi-Fi.

The result is an estimate for a block of addresses, not for an individual device.

How accurate is it?

Accuracy varies by provider and by type of connection, but the pattern is consistent:

  • Country is right in the vast majority of cases.
  • Region is usually right for fixed broadband in large countries.
  • City is right much less often — sometimes it’s the nearest large city, sometimes the location of the provider’s equipment hundreds of kilometres away.

A good estimate comes with an accuracy radius; this site draws it on the map. Coordinates are rounded to about a kilometre, because pretending to more precision would be misleading.

Why your IP shows the wrong place

  • Mobile networks route traffic through a few central gateways, so phones across a country can appear in one city.
  • Carrier-grade NAT puts many customers behind one address, at a central location.
  • VPNs, proxies and privacy relays show the location of their exit servers.
  • Satellite internet may exit in another country entirely.
  • Reassigned blocks keep stale data until databases catch up.

Correcting a location

If your address is consistently wrong, contact the geolocation provider — our location data comes from DB-IP, which accepts corrections, and so do other databases. Network operators can publish a geofeed so every provider gets it right.

What it should never be used for

IP geolocation cannot identify a person or a home. It shouldn’t be used to locate someone, to dispatch emergency services or as the only evidence for decisions about an individual. If an application needs your precise location, it has to ask for it through the browser — and you can say no.

See where any address is estimated to be — with its accuracy radius and source — in the IP geolocation tool.

  • Privacy2 min read

    What is CGNAT (carrier-grade NAT)?

    Why your provider may be sharing one public IPv4 address with hundreds of customers, how to tell, and what it breaks.

  • DNS2 min read

    How does DNS work?

    From typing a name to getting an address: resolvers, root servers, TLDs, caching and TTLs, in plain language.

  • IP addresses2 min read

    Why does my IP address change?

    Dynamic leases, router restarts, mobile networks and IPv6 privacy addresses: the everyday reasons your IP isn't constant.