Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Get a Static IP address for Cloud run service.

Hello.

I need a static IP address for a cloud run service and I was able to create it using this link. 

I can see a certain IP in VPC Network -> IP addresses, but when I curl https://curlmyip.org, I get a different IP. 

I am a bit confused as I don't know which is my static IP. Am I doing something wrong?

1 1 3,215
1 REPLY 1

Greetings @vetsarkng!

Welcome to the Google Cloud Community!

If you followed the guide correctly,  then the IP address that is shown in your curlmyip.org should be your static outbound IP address.

It is stated in the documentation that Cloud Run's outbound traffic passes through a VPC network that has the NAT gateway that is configured with the static IP address. What you are seeing in your VPC network could be an IP address that has not passed through the NAT gateway which is why it has a different IP address from the one in curlmyip.org

If the above options don't work, you can contact Google Cloud Support to further look into your case. Let me know if it helped, thanks!