How IP Geolocation Actually Works

Category: Geolocation & Routing Updated: November 28, 2026 Reading time: 8 minutes

An IP address has no GPS coordinates baked into its bits. Unlike a postal zip code, IP prefixes follow network topology rather than geography. Turning an IP like 198.51.100.14 into a city, ISP, and timezone requires combining registry records, routing tables, self-published ISP geofeeds, and active latency measurements.

1. The Foundation: Five Regional Internet Registries (RIRs)

Global IP space is administered by IANA, which delegates large blocks to five Regional Internet Registries. Those RIRs allocate prefixes to ISPs, cloud providers, universities, and enterprises while maintaining public WHOIS/RDAP records documenting the holder's legal country and Autonomous System Number (ASN):

RIRService RegionPrimary Database Role
ARINUnited States, Canada, parts of CaribbeanNorth American IPv4/IPv6 & ASN allocations
RIPE NCCEurope, Middle East, Central AsiaEuropean & MENA allocations and geofeed pointers
APNICAsia-PacificAPAC allocations and national registry coordination
LACNICLatin America & CaribbeanRegional IP/ASN delegation
AFRINICAfricaAfrican regional IP/ASN delegation

Registry data alone is coarse: it often lists a nationwide ISP's corporate headquarters rather than the city where a specific residential subnet terminates. That is why geolocation providers treat RIR data strictly as a baseline and layer multiple dynamic signals on top.

2. Four Signals Used to Narrow Down City-Level Location

3. Accuracy Expectations by Connection Type

Geolocation accuracy is not a single percentage; it varies dramatically depending on how the end user connects to the internet:

Connection TypeCountry AccuracyCity AccuracyPrimary Reason for Drift
Fixed Residential Fiber / Cable99%+70%–85%Subnet mapped to ISP's metro aggregation hub
Cellular (4G / 5G)98%+20%–50%Carriers egress traffic through centralized Packet Gateways
Satellite (e.g., LEO constellations)95%–99%LowTraffic exits through regional ground stations & PoPs
Enterprise / Corporate VPNVariesLowRemote employees tunnel through corporate HQ firewall
Consumer VPN / Tor / ProxyMaskedMaskedIP intentionally reflects the exit server, not the user

4. The Anycast Edge Case

Try looking up 1.1.1.1 (Cloudflare) or 8.8.8.8 (Google Public DNS) in our IP Analyzer. Those addresses use BGP Anycast: the exact same IP prefix is announced simultaneously from hundreds of data centers on every continent. Your packets reach whichever data center is topologically closest to you, yet a static geolocation database can only assign one set of coordinates (often the operator's headquarters or a default country centroid) to that IP.

Privacy & Compliance Reminder: IP geolocation maps network infrastructure, not individuals. Never treat city-level coordinates as a street address — databases frequently place unresolved city matches at the geographic center of a city or country (creating famous "null island" or Kansas-farmhouse artifacts).

5. How Network Operators Fix a Misplaced IP

If your company's static IP block shows up in the wrong country or city (common after transferring legacy IPv4 blocks across regions), individual websites cannot fix it permanently — the upstream databases must be updated:

  1. Publish an RFC 8805 Geofeed: Host a plain CSV mapping your prefixes to ISO-3166 country/region codes and link it via the geofeed: remark in your ARIN/RIPE/APNIC record.
  2. Verify PTR Hostnames: Remove stale city codes from reverse DNS records left behind by a previous IP owner.
  3. Submit Direct Corrections: Major providers (including IP2Location, MaxMind, and Google) maintain correction forms and automated geofeed ingest pipelines that refresh on monthly or weekly cycles.
Inspect an IP live: Test any address — including Anycast DNS resolvers or your own connection — in our IP Geolocation & Network Analyzer.

Related Guides: IP Addressing & NAT Explained  |  CIDR & Subnetting Guide