← All articles

Free IP Geolocation Lookup: How It Works and How Accurate It Is

A free IP geolocation lookup takes a public IP address and returns an estimated location — country, region, city, ISP and sometimes coordinates — by matching that address against a database built from internet registry records, ISP-published data, and routing information. It is not GPS: country-level results are reliable (often cited above 99%), but city-level accuracy is much lower and typically wrong once you cross a VPN, mobile carrier, or corporate proxy.

If you're running a free IP geolocation lookup to understand who or what is hitting your infrastructure — a login attempt, an API call, an unexpected request from an unfamiliar region — it's worth knowing exactly what the result is telling you, and what it can't.

How a free IP geolocation lookup actually resolves an address

There's no satellite involved. An IP geolocation lookup is a database match, and the database is assembled from several layers of data that each contribute a different signal.

Regional Internet Registry (RIR) allocation records

IANA delegates large address blocks to five Regional Internet Registries: ARIN for North America, RIPE NCC for Europe and the Middle East, APNIC for Asia-Pacific, LACNIC for Latin America, and AFRINIC for Africa. Each RIR allocates sub-blocks to ISPs and organizations in its region and publishes the allocation in a public WHOIS/RDAP record. That record gives you a country and an organization name — it's the single most reliable signal a geolocation database has, which is why country-level results hold up so well. It is not reliable evidence of where traffic is actually used, only where the block was registered.

Geofeeds and ISP-published data

RFC 8805 defines a self-published CSV format — a geofeed — that lets network operators declare where their own prefixes are actually used, down to the city or postal code. Providers that ingest geofeeds get meaningfully better city accuracy for networks that bother to publish one; most residential ISP blocks still don't.

BGP routing and active measurement

By analyzing publicly available BGP routing tables (from projects like RIPE RIS and RouteViews), a provider can see which autonomous system originates a given range and where its network peers geographically. Some providers add active latency probing — pinging the same address from multiple known-location vantage points and triangulating where round-trip times are consistent with each other (sometimes called constraint-based geolocation or multilateration).

Putting it together

A lookup query matches the submitted address against the merged dataset and returns whichever fields the provider has confidence in — country and ASN almost always, city and coordinates only when the underlying signals agree. Our own IP geolocation scanner runs this same kind of lookup against assets in a verified scan, returning location and network ownership context alongside the rest of a domain's exposure data — useful for sanity-checking where your infrastructure (and traffic hitting it) is actually registered.

How accurate is a free IP geolocation lookup, really

This is where most people overestimate what they're getting. MaxMind's own accuracy documentation — the company behind the widely used GeoIP/GeoLite databases — states plainly that country-level identification runs around 99.8% accurate, but that city-level accuracy is far lower and varies heavily by country. In the US specifically, MaxMind estimates roughly 80% accuracy at the state/region level and about 66% accuracy at the city level (within a 50km radius).

MaxMind's public accuracy comparison tool breaks this down country by country, and the spread is wide: some countries (Bahrain, Malta, Mauritius) show 100% of IPs correctly located within 50km, while others (Hong Kong at 29%, Finland at 36%, Italy at 42%) show the majority of IPs either placed outside that radius or with no city-level data at all. The practical takeaway: a free IP geolocation lookup is genuinely dependable for "which country," noticeably weaker for "which state," and should be treated as a rough estimate — not evidence — for "which city."

GranularityTypical reliabilityWhat it's actually telling you
Country~99.8% (per MaxMind)Based on RIR allocation + ASN registration; very reliable
Region/state~80% in the USBased on ISP sub-allocation and geofeed data; country-dependent
City~29–100% within 50km, country-dependentWeakest layer; varies by how much data the ISP publishes
Exact addressNot supportedNo commercial GeoIP database maps to a street address or household

Why IP geolocation gets the location wrong

A handful of specific, well-documented reasons account for most inaccurate results.

  • VPNs and anonymizing proxies. MaxMind's own blog explains this directly: when a user routes through a VPN, "the server's IP address is being used to browse the internet, not the end-user's," so any lookup only geolocates the VPN exit node — not the person behind it. There is no way to recover the real location from the IP address alone once it's been proxied.
  • Residential proxies. Unlike datacenter VPNs, residential proxies route traffic through real consumer internet connections, which makes them far harder to flag as non-residential traffic even though the reported location still belongs to the proxy host, not the original user.
  • CGNAT (carrier-grade NAT). Many mobile carriers and some residential ISPs share a single public IP across large numbers of simultaneous users, so a lookup for one address may genuinely cover a whole metro area's worth of different devices.
  • Stale or under-published allocation data. IP blocks get reassigned, resold, and re-announced over BGP more often than registry records or geofeeds get updated, so a database snapshot can lag the real-world allocation by months.
  • IPv6 and mobile carrier ranges. Mobile carrier blocks are frequently centralized at a regional gateway regardless of where the device actually is, which is one reason mobile-origin IPs geolocate worse than fixed broadband in most country breakdowns.

If you're using IP geolocation data as a security signal rather than just curiosity, pair it with proxy/VPN/anonymizer detection rather than trusting the raw location field — the two tell you different things. Our IP threat score scanner layers reputation and anonymizer signals on top of raw location data for exactly this reason, so a login from a "plausible" city that's actually a known VPN exit doesn't get a pass just because the map pin looks reasonable.

What a free IP geolocation lookup is actually good for

Despite the limits, it's a legitimate and useful tool when you match the question to what it can answer:

  • Coarse fraud/abuse signals — flagging a login attempt from a country your user has never logged in from, where the country-level signal is strong.
  • CDN and latency troubleshooting — confirming which edge location served a request.
  • Compliance and data-residency checks — a first-pass check on whether traffic or data appears to be originating/terminating in an expected jurisdiction, backed by manual verification.
  • Attack surface reconnaissance — mapping where your own exposed infrastructure is actually hosted versus where you think it's hosted, often turning up forgotten assets in unexpected regions.

It is not good for pinpointing a specific person, household, or street address — no commercial GeoIP provider claims that capability, and MaxMind explicitly disclaims it in their own documentation.

Using IP geolocation as part of a wider recon workflow

A single IP lookup tells you about one address at a point in time. If you're assessing your own exposure, that's rarely the real question — the real question is what's reachable, where it's hosted, and whether any of it should be. Our IP discovery scanner maps subnets for live hosts across your verified infrastructure, and the broader reconnaissance engine pivots across discovered assets automatically rather than requiring you to run one-off lookups by hand. If you want the step-by-step process for building that full picture, see how to map your external attack surface and the broader context in external attack surface management (EASM).

Closing thoughts

A free IP geolocation lookup is a fast, useful first check — reliable at the country level, rough at the city level, and blind to anything behind a VPN or proxy. Treat the result as a starting point for investigation, not as proof of where a request actually came from, and combine it with reputation and anonymizer signals before making any security decision based on it.

Want geolocation and threat-reputation data for your own exposed infrastructure, not just a single ad-hoc IP? Start a free scan and see what SecurityInfinity's agents find across your verified domains.

Frequently asked questions

How accurate is free IP geolocation?

Country-level accuracy is very high — MaxMind reports around 99.8% for its GeoIP products. City-level accuracy is much lower and varies by country, ranging from under 40% to 100% correctly located within a 50km radius depending on the country and how much ISP data is available there.

Can IP geolocation find my exact address?

No. No commercial GeoIP database, free or paid, maps an IP address to a specific street address or household. The best granularity available is typically city-level, and even that carries a meaningful accuracy radius rather than a pinpoint.

Does a VPN hide my location from IP geolocation lookups?

Yes, for the IP-based signal specifically. A geolocation lookup on a VPN user's visible IP address returns the VPN server's location, not the user's actual location, because the VPN server is the one making the request on the user's behalf. Reputation and anonymizer-detection databases can often flag that the IP belongs to a known VPN range, which is a separate signal from location.

Why do two different IP geolocation tools give different results for the same IP?

Each provider builds its database from its own mix of registry records, geofeeds, BGP data, and active measurements, and updates on its own schedule. Differences in how recently a provider refreshed its data, or how it weighted conflicting signals, can produce different city or region results for the same address even when both agree on the country.

Is free IP geolocation data good enough for security monitoring?

It's useful as one signal among several, especially for country-level anomaly detection, but it shouldn't be the sole basis for access decisions. Pairing location data with IP reputation and anonymizer detection — like our IP threat score scanner — gives a more reliable picture than location alone.

Find what attackers can see, before they do.

AI pentesting agents test your web app, API and cloud, and every finding comes with evidence and a fix. First report in about 10 minutes.

Stay ahead of attackers.

New vulnerabilities, breach write-ups and practical fixes. A few emails a month.