Cloud Run services deployed in europe-west1 region have USA based IP.

Hello,

I’m confused about the regions/zones behaviour of Cloud Run and would appreciate insights.

When I deploy Cloud Run instances in non US region (europe-west1, europe-west9, asia-southeast1, ect.), the live services all return an IP address located in the US.

Is it the intended behaviour?

2 Likes

Howdy … can we drill down on the notion of the Cloud Run exposed public Internet IP address you are seeing. What is making you think that the IP address is located in the US? (I am NOT saying you are wrong, just curious on the workings/mechanism to determine that).

Hi kolban,

If I ping services like "https://checkip.amazonaws.com/" from my server runtime, I get an IP that is located in the US by tools like "https://www.iplocation.net/". Moreover, I’m calling an API for a service provider that end up preventing service to my server, because it register the incoming requests as coming from within the US. (they have a different API for US service, which I can’t use because I’m not a US citizen.)

This behaviour appear while I’m using the default configuration of Cloud Run instances, meaning no VPC or cloud NAT setups.

Appologies for my lack of understanding of networks. How can I ensure the exposed public Internet IP match the location of the region? As in, if I deploy to europe-west9, I want the public Internet IP to be parsed by third-party services as coming from France.

2 Likes

+1

I’m having the same issue. Our cloud services deployed in EU region are having US based IPs (ASN 15169 - GOOGLE). I’ve done a little bit of research and seems like the reason is that all Google Compute Services are a part of the same IP pool. That IP pool looks like based in US.

I can understand and relate the explanation however I’m wondering if it’s that hard to have more than one IP pools for a company like Google.

We’re currently trying to control our network traffic for security and looks like almost all the requests we’re receiving on our backend are from the US even though all of our services on Google are based in EU.

1 Like

See if this Stack Overflow thread helps … (ref).