Location & networks

Why can one IP address appear in many locations? Anycast explained

Anycast lets multiple network locations advertise reachability to the same service address. Routing policy determines which instance receives a particular request.

Updated

One service address, multiple sites

A network can advertise the same address or prefix from multiple points. Traffic from different parts of the internet may reach different service instances. This is common for distributed DNS infrastructure and content delivery systems.

Nearest is not necessarily geographic

BGP routing follows network policies and paths. A packet may reach an instance that is topologically preferred, not the one closest on a physical map. Routes can change due to maintenance, network failures or policy updates.

One address, several service sites

Illustrative data · No network requests

192.0.2.53Same service IP
Region ARoute to site A192.0.2.53
Client A

Multiple sites can advertise the same service address.

Read all scenarios
  1. Client A: Region A · Route to site A · 192.0.2.53. Multiple sites can advertise the same service address.
  2. Client B: Region B · Route to site B · 192.0.2.53. Routing policy may deliver another client to a different instance.
  3. Route changes: Region A · Route to site C · Same IP. The IP remains the same even when routing changes the service instance.

Limits for geolocation

A database usually attaches a location estimate to an address range. For anycast, a single country or city cannot describe every physical instance reached from every network. A lookup can describe the dataset's estimate without observing where your packets terminated.

Compare routing and address data

The same public resolver address can produce different latency or routing behavior from different networks. ASN and organization may still be useful, but the GeoIP coordinates should not be interpreted as a measured endpoint position.

Try this

When troubleshooting latency, use measurements designed to observe the actual route from your connection. An address database cannot supply that live path by itself.

Inspect your own IP address →

Technical references