Skip to content
Location

· 4 min read

Can an IP address reveal your location?

Short answer: no. A location from an IP address is a statistical guess. It is usually right about the country, sometimes right about the city, and almost never right about the street. Here is where the guess comes from and why it fails.

On this page

The short answer#

No. An IP address does not contain a location. Every place you see attached to one comes from a database that guessed, and the guess was made from indirect evidence. It is usually right about the country, often right about the region, sometimes right about the city, and it almost never identifies a street or a household. Anyone offering to find a person's home from an IP address is selling something they do not have.

Where a location comes from#

There is no worldwide register of where addresses physically are. Geolocation providers assemble their own from several sources, each with its own weaknesses:

Sources of IP geolocation data
SourceWhat it givesWeakness
Registry recordsThe country and organisation a block was allocated toRecords the address of the holder's office, not where the addresses are used. A multinational's block can sit in one country and be used in twenty
ISP-published feedsNetworks state where their blocks are, in a standard format (RFC 8805)Only as good as what the ISP publishes, and only if it does
Routing dataWhich network announces the block, and which regions it servesCoarse: a region, not a city
Latency measurementRound-trip times from known probe locations narrow the possible areaNetworks do not follow geography, and a slow path is not a distant one
Commercial and crowd-sourced dataLocations attached to addresses by apps, maps and services that knew where the user wasOld, sparse, and sometimes attached to the wrong address after a block changes hands

A provider combines these and reports a location together with a confidence. Different providers combine them differently, which is why the same address can show different cities in different tools.

How accurate is it?#

Accuracy falls quickly as you move from a country toward a street, and it varies enormously by network. Vendors publish country-level accuracy in the high nineties and much lower figures for city level, and independent comparisons find wide disagreement between providers on smaller places. Treat any single figure as an average across networks that are very different from each other.

What you can reasonably rely on
LevelReliabilityNotes
CountryHighStill wrong for VPN, satellite and some mobile connections
Region or stateFairWeaker for small countries and large ISPs that route centrally
CityVariableOften the city of the ISP's nearest hub, not of the user
PostcodePoorFrequently a default for the area
Street or buildingNoneNot derivable from an IP address

That is why a good lookup reports an accuracy radius next to the coordinates, and why this site draws the uncertainty on the map of a full report instead of a single pin.

Why the location is often wrong#

  • Your ISP's hub. Traffic from a whole region can enter the internet at one point. The address geolocates there, which can be a city you have never visited and be dozens or hundreds of kilometres away.
  • Shared addresses. Under carrier-grade NAT, many customers share one address, and mobile networks route through a few gateways. The location is the gateway's.
  • Anycast. One address announced from many places, such as a public DNS resolver, has no single location. A database picks one.
  • VPNs, proxies and Tor. The address is the exit's, by design. Check whether an address belongs to one.
  • Stale data. Blocks are sold, leased and moved between networks. A database that has not seen the change keeps the old location for months.
  • Defaults. When a provider knows only the country, it must still return coordinates, so it picks a point, often the geographic centre. One widely reported case placed hundreds of millions of addresses, whose true location the database did not know, at a single house in Kansas, because it used the middle of the United States as its fallback. The residents were repeatedly visited by people looking for a thief, a scammer or a hacker.

What it is good for#

  • Choosing a language, currency or store as a default that the visitor can change.
  • Compliance at country level, such as content licensing, sanctions screening and tax, as one input among several.
  • Fraud signals: a login from a country your customer has never visited is worth a second look, especially with a data-centre network attached.
  • Operations: routing users to the nearest server, or spotting where traffic comes from.

Check what a site would see#

Your own address is on the home page with the location a typical database assigns it, and the accuracy radius. It is often not where you are, and that is normal. Compare it with a lookup of any other address, and try the same address with a VPN on to see the estimate move.

Common questions#

Can the police find my house from my IP address?

Not from the address alone. They can ask your ISP, with legal process, which subscriber held it at a given time, and the ISP can answer precisely. That is a records request, not geolocation.

Can I stop my location showing?

You cannot stop the address from being seen, but you can change which address that is. A VPN moves the apparent location to the VPN's exit. See how websites see your IP address.

Why does my location change between websites?

Because each uses a different database. The address is the same and the guess is not.

Try it on your own connection

Sources and further reading

Keep reading

Published by My IP Address