GeoIP
Also known as: IP geolocation, geolocation
The practice of estimating a physical location (country, region, city) from an IP address by matching it against a database of allocated IP ranges.
Last updated:
What is GeoIP?
GeoIP is the general term for mapping an IP address to a physical location estimate — typically a country, region, and city, sometimes with approximate latitude/longitude and time zone. It works by maintaining a database of allocated IP ranges (by CIDR block) and the locations reported by the owning ISPs and autonomous systems.
GeoIP is used for content localization, fraud detection, ad targeting, compliance (geo-blocking), traffic analytics, and threat intelligence. Every major web platform uses it somewhere in its stack.
How accurate is GeoIP?
Accuracy varies sharply by geographic granularity and connection type:
- Country-level accuracy: typically 95-99% across commercial databases
- Region/state-level: 60-85%
- City-level: 50-80%, with wide variance by country
- Latitude/longitude: not a precise point — most lookups return the population-weighted centroid of the reported city or region
Accuracy is highest for stable, business-grade IPs (datacenters, large ISPs, enterprise networks) and lowest for mobile carriers (which dynamically assign addresses across large regions) and VPN/proxy services (which reflect the VPN server's location, not the user's).
How GeoIP databases are built
Commercial databases like MaxMind GeoLite2 and DB-IP combine multiple signals:
- ARIN/RIPE/APNIC/LACNIC/AFRINIC allocation records (who owns what range, and where the owning org is registered)
- BGP routing data (where the range is announced from on the internet backbone)
- Probe measurements (latency triangulation from servers around the world)
- User-reported corrections and ISP disclosures
- Reverse DNS patterns that encode city or airport codes
Our IP lookup tool cross-references MaxMind GeoLite2 and DB-IP so that gaps in one database can be filled by the other, which produces measurably more complete results than relying on a single source.