Change datacenter location for website

Hello!

I run a website in Denmark, but I can see that my website is being routed through a Cloudflare datacenter in USA. How can I change this so it gets routed through their Danish datacenter?

Thanks, hope someone can help me :slight_smile:

Cloudflare routes through the datacenter with the fastest route to the visitor. Can you post the results of this link? Change EXAMPLE.COM to your domain:

EXAMPLE.COM/cdn-cgi/trace

I don’t think you can change the data center Cloudflare uses to provide your content. For about two months now my website is being served out of Miami (MIA) instead of São Paulo (GRU) as it used to be (my website audience and I are in Brazil).

I first thought this was an ISP peering issue, where the ISP sends its traffic to a far destination because they have certain network sharing agreements. But both a trace using the method @sdayman just mentioned and the GTMetrix reports out of São Paulo point to the MIA data center as the source of all my Cloudflare-served content. Sometimes GTMetrix will get content out of Newark, NJ (EWR), but it’s been a while I don’t see any content out of GRU (or RIO for that matter).

Perhaps Argo could help, but I haven’t tried it. Has anyone?

Sure, please see: http://www.sevecu.com/cdn-cgi/trace

I just don’t understand how it can be faster to route traffic via their American datacenter instead of their Danish datacenter.

Can you post the output of that URL here?

2 Likes

I sure can:

fl=75f10
h=www.sevecu.com
ip=62.66.212.187
ts=1546846125.259
visit_scheme=http
uag=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
colo=HAM
http=http/1.1
loc=DK
tls=off
sni=off

ohh wait… now it says DK :smiley: that’s new

DK is your location, it now goes via Germany instead of the US. Latency-wise probably a tad better.

May I know, on which Cloudflare plan your domain is active?

  • Free
  • Pro
  • Business
  • Enterprise

0 voters

Thanks for the answer.

Can you paste here a test report link of
https://Cloudflare-dns.com/help

colo=HAM

Does that mean that the datacenter is located in Hamburg Germany?

Precisely. Ideally you should be routed via CPH, but that depends on your ISP too, so HAM is not all that bad.

Okay, but I still don’t understand why it is not routed via the closest datacenter. ISP is also located in Denmark. But yeah - but I prefer a German datacenter instead of an American datacenter

I have another website on Cloudflare:

Now that is being routed via AMS

fl=20f191
h=www.fecconsulting.dk
ip=62.66.212.187
ts=1546846677.234
visit_scheme=http
uag=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
colo=AMS
http=http/1.1
loc=DK
tls=off
sni=off

Welcome to the mysterious world of the Border Gateway Protocol :slight_smile:

Can you also post the output of https://Cloudflare.com/cdn-cgi/trace?

Comes here:

fl=65f29
h=Cloudflare.com
ip=62.66.212.187
ts=1546847887.135
visit_scheme=https
uag=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
colo=CPH
http=h2
loc=DK
tls=TLSv1.3
sni=plaintext

All right, so your connection can reach Cloudflare’s Danish datacentre. You might want to open a support ticket in this case.

Is that other website hosted in the same location as the first one?

I think it could be due to the plan level and different assigned subnets.

This topic was automatically closed after 14 days. New replies are no longer allowed.