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.
Related
Frequently asked questions
What is IP geolocation?
How accurate is IP geolocation?
Can IP geolocation find a person's home address?
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