Cannot get a nearest CF location, but always US location when accessing from Japan

For Workes & Pages, what is the name of the domain?

exchange.xiaoxin-wang.workers.dev

What is the error number?

N/A

What is the error message?

N/A

What is the issue or error you’re encountering

when accessing from Japan, The resolved IP address is in US

What steps have you taken to resolve the issue?

N/A

What are the steps to reproduce the issue?

I have deployed my websocket worker to CF. I believe in different regions, I could get different IP addresses to dial in.

I logged into a desktop which is located in AWS Japan region. I checked the IP address, it is 20.189.200.203 Osaka, Japan.
Then, I resolved my worker domain by Nslookup, the result is [172.67.184.225, 104.21.56.115]
I googled these IP addresses and found both are San Francisco.

Is this the expected behavior? I hope when I am in japan, I cloud get a Japan or Asia IP address to reduce network latency.

Cloudflare IP addresses are anycast so are announced from all locations.
https://www.cloudflare.com/en-gb/learning/cdn/glossary/anycast-network/

To check where you are connecting to Cloudflare go to…
https://exchange.xiaoxin-wang.workers.dev/cdn-cgi/trace
…and see which location is given by colo.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.