Skip to content

Glossary

IP geolocation: locating an address on a map

IP geolocation maps an IP address to a country, region and city using registry and measurement data. How it works, how accurate it is and where it fails.

Updated 2026-11-23

IP geolocation is the practice of estimating where an internet address is located. A database maps ranges of IP addresses to a country and sometimes a region and city. It tells you where a network's addresses are registered or routed, which usually, but not always, is close to the people using them.

How it works

Providers combine several sources:

Source What it gives
Regional internet registry records The country and organization an address block was assigned to
Routing data from BGP Which ASN announces the block
Measurements Latency from probes, to place blocks geographically
Provider and user-submitted corrections City-level hints for ISP blocks
Reverse DNS names Airport or city codes in router names, see reverse DNS

The answer applies to a block of addresses, written as a CIDR prefix, not to a single device. Lookups find the most specific block that contains the address.

Where it fails:

  • Mobile networks. Traffic can exit at a gateway in another city or region.
  • VPNs and proxies. The address shown is the exit, not the user. See VPN.
  • Corporate networks. All offices may appear at headquarters.
  • Cloud and CDN addresses. They show the data center, not an end user.
  • Stale data. Blocks are sold and moved between regions.

Errors grow at each level of detail: country, then region, then city. There is no honest street-level IP geolocation. For the details on accuracy, read IP geolocation accuracy.

Why it matters for validation

Location is a cheap signal to compare against what the user says. A signup that claims one country while the address resolves to another is not proof of fraud, but it is a reason to look closer.

The IP API returns country and, when known, region and city. Qelka reads country and ASN data from IPinfo Lite and region and city from DB-IP Lite, both free databases credited on the data sources page. Fields are null when unknown. Remember that the result locates the network, not the person.

Good uses:

  • Default language, currency and legal notices.
  • A mismatch signal between billing country, phone country and IP country.
  • Velocity checks across countries in a short time.

Poor uses: blocking by city, or treating the location as the user's home.

Frequently asked questions

What is IP geolocation?
IP geolocation estimates the physical location of a device from its IP address, as a country, region, city or coordinates. It uses databases built from registry records, routing data and measurements. It locates the network the address belongs to, which is often near but not exactly where the user is.
How accurate is IP geolocation?
Country level is generally reliable, region and city much less so, and street level is not possible. Accuracy drops for mobile networks, VPNs, proxies and satellite internet, where the registered location can be far from the user. Treat city as a hint, never as proof of where someone is.
Can IP geolocation find a person's home address?
No. It returns the location registered or measured for a network block, not for a person, and it cannot identify who uses the address. Internet providers know subscribers, but they do not share that without legal process. Geolocation data is for coarse decisions like language, currency and fraud signals.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time