GeoIP (short for "geolocation by IP address") is the practice of estimating a device's physical location from its public IP address, without needing GPS, Wi-Fi positioning, or any input from the device itself. It's the technology behind things like currency auto-selection on shopping sites, regional content restrictions, and the "location" column in a server's access logs.

Where the data actually comes from

IP addresses aren't inherently tied to a location. An IP is just a numeric identifier assigned to a network interface. GeoIP databases build their location estimates by combining several data sources:

What GeoIP can tell you

A typical GeoIP lookup returns a mix of the following, though not every field is available for every IP:

Why it's an estimate, not a fact

Country-level accuracy for GeoIP is generally very high, well above 95% for most databases, since RIR allocation records are authoritative at that level. City-level accuracy is much lower, commonly cited in the 50-80% range depending on the region and how mobile the address space is. A few things routinely throw off city-level accuracy:

For most practical uses (fraud screening, log forensics, content localization, abuse investigation), country and ISP-level accuracy is what actually matters, and that's where GeoIP is genuinely reliable.

Common use cases