Peering - Why don't I reach the closest datacenter to me?

Why don’t I reach the closest datacenter to me?

Cloudflare is an anycast network, so where you are routed is determined by peering with ISPs. The shortest path geographically isn’t always possible due to peering agreements.

If you request a site hosted on Cloudflare from home:

  • The domain resolves to a Cloudflare IP
  • Your browser sends an HTTP request to that IP
  • Your ISP’s routers consult their routing table and route the packets upstream to their transit provider ( COSTS MONEY )
  • The packets traverse multiple hops to the nearest Cloudflare POP ( TAKES TIME )
  • Those packets are taking up some of the ISPs capacity, making it unavailable for other competing packets ( TRAFFIC MANAGEMENT )

From this blog post

What is Peering?

To address these problems, large networks, hosting providers and CDNs will peer with each other. That is, to interconnect their networks directly. Put another way, cut out the middleman. If I request a site on Cloudflare and my ISP is already directly connected to the Cloudflare network, the packet will traverse fewer hops, my website will load faster, my ISP will pay less to their transit provider and they can allocate that bandwidth for other sites.

From this blog post

You can determine which Cloudflare data center your requests are going to by adding /cdn-cgi/trace to the domain name. E.g. go to in your browser (replacing with your domain name. You will then see colo=ABC with ABC being the airport code of the nearest major international airport to the data center.
Link to support article.

Links and resources:

Tool to see where sites are routed based on plan. From fellow MVP, @Judge.

This is a Community Tutorial, most are wiki posts, so can be contributed to by Regulars and MVPs here, you can view all the community tutorials here. If there is a tutorial you would like to see, you can request one here.

Other great resources on this community include the Community Tips . These address best practices when configuring Cloudflare, how to fix issues you may see, and tools to troubleshoot. Also you can view Expert Tips, great posts on the community that can help users with a similar issue.

We encourage users to check out these great resources and the Cloudflare Support Centre before posting

I want to connect the user to the nearest server
Privacy location
High IPv6 Latency
Local POP for free accounts
Does CF cdn really works for me?
Cloudflare is not hosting site from nearest servers, if peoples accessing from india its going to US CDN servers
Cloudflare have VietNam location but my site store in Singapore
Quiero que mi pagina estè alojada en mi ciudad resolves to Berlin datacenter
Server and user connection located in HKG, but CDN from SIN
Specify colo for request
How long does it take to cache a website to my nearest server and update its records?
How to get content served from nearest location
Routing to Tokyo/Singapore instead of Australia
Why is my server in Amsterdam served through CF server in Hamburg?
Cloudflare keeps using SIN than NRT WARP + Unlimited
Over 200ms RTT to Cloudflare IP's from some Australian Carriers (Telstra and Optus)
Do you have generally available edge servers in Lima, Peru?
Connects to the nearest DNS server
I want to go to the Hong Kong node
IPv6 route to slower than IPv4
Traffic not routed through desired Data centre
Wrong POP Location
CloudFlare PoP Selection & Argo Routing
Tracert from different locations vary to the webserver
ISP Metrotel (Buenos Aires - Argentina)
For using cloudflare's dns service
Cloudflare DataCenter in Buffalo, NY
The negative impact of cloudflare's Israel POP
Experiencing Cloudflare and Reliance Jio Network issue, Since many days
Pro account + Argo but data is sent from a VERY distant datacenter
Cloudflare makes APIs super slow - even with Argo enabled
Getting data from very far away DataCenter
Data Center Location
PoP brasil not work
Routing to wrong coutry .... pages slow
I want to connect to the nearest server using cloudflare
Website Traffic from Hong Kong, served by server located in singapore
How to change Data Center to #134
Changing the location of the datacenter closer to customers is served from farther datacenter over IPv4, but close datacenter over IPv6
Google Cloud accessing API behind Cloudflare
The problem of Data Center is not suitable
CF location
Cloudflare not connecting to nearest location routes me to Russia even though I am not in Russia
Im not routed to the nearest pop
Pops united states
Peering (posts, resources and links)
Cloudflare SSL/TLS significantly slows down our server
Vastly different latency to, Same country
Latency on my website
Not resolving to nearest node
Proxying requests through Cloudflare increases the latency
Website loading slow & High Ping
Ask about
I'm getting a far away POP
Upload files through CF
Indonesia POP
Why access from Taipei(Taiwan) can't be routed to Taipei (TPE) nodes?
Free and Pro AU routing
Community Tutorials
Site accessed from Australia forwarding Europe LDNS IP
How to know which data center I'm in?
AWS CloudFront (Routing Issues) working with high latency in Argentina
HELP me with my cloudflare!
Direct Routing for Transworld Associates
Can Anyone please help me with this
Can anyone please help me
Cloudflare dns location problem
Using from Beirut
Ttfb time increase after using cloudflare
Why Cloudflare won't bring me to the nearest PoP Server?
Hi why my cf-ray does not route to the closest data center?
Cloudflare not routing through nearest datacentre
Why is Auckland, NZ, Routing through Osaka, JAPAN?
How to deploy workers and kv to all data centers? is using the farest server for my location
Gcloud server in AUS but Cloudflare in USA (Will it use our local server)
Cloudflare wrong routing
Far away datacenter used
Data Center
Getting served by wrong nodes causing high latency
How I can choose the location of my server