NNetChecks.tools
ToolsIP geolocationCDN routing
$ geoip --route-edge 203.0.113.123
Live

use case: CDN routing

IP geolocation for CDN routing and origin selection

Pick the closest CDN POP and the right origin region for a visitor using country, ASN, and continent metadata from the IP.

GET/v1/geo/{ip}

Use IP geolocation to choose the right CDN POP, origin region, and failover behavior for a visitor before any TLS round trip. CDN providers like Cloudflare, Fastly, Akamai, and AWS CloudFront expose the resolved country, continent, ASN, and POP in request headers, which lets edge workers pick a regional origin, route through compliance boundaries (data residency), or fall back to a healthier POP. Paste an IP to see what the geolocation library returns for country, continent, time zone, and ASN, then validate it against your CDN provider header to keep edge logic and origin logic in sync.

Statistics as of .

Use caseCDN routing
Typical AccuracyCountry: 99%. Continent: 99.9%. POP-to-IP affinity is provider-defined and not always public.
Key Data FieldsCountry, continent, ISO subdivision, ASN, organization, time zone, postal code, IPv6 support.
Integration PointEdge worker, geo steering DNS, origin selection rule, data-residency boundary check.
Sample ProviderCloudflare CF-IPCountry header; AWS CloudFront viewer-country header; MaxMind GeoIP2 City.
Decision ImpactMisrouted POPs add 50-200ms RTT for far-away visitors; data-residency mistakes have legal cost.

Source: https://developers.cloudflare.com/network/cf-ipcountry/ (accessed 2026-05-06)

City / regionN/A
CountryN/A
ASN / orgN/A
CoordinatesN/A
⚠ noteIP geolocation is approximate and database-driven. Combine results with behavioral, device, and account signals for high-stakes decisions; never use it as sole identity proof.

Network tool FAQ

Should I trust the CDN-provided country header or run my own GeoIP?

Trust the CDN header at the edge for routing speed, but run your own GeoIP at the origin for audit. Pin the CDN country to a request header your origin can verify so you do not parse it twice.

How do I handle a country mismatch between CDN and library?

Log both, use the CDN value for routing (it is what already happened), and use the library for downstream logic. Investigate persistent mismatches — they often surface stale databases or VPN edge cases.

Can IP geolocation enforce data residency?

It is a useful first filter, but legal data residency typically requires the actual data store and processing to live in-region. Use IP geolocation to pick the right write endpoint, not as the only legal control.

Related network tools

All tools →