Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LAMP Compute Engine changes IP

I moved my PHP application to the Google Cloud platform since Google is my friend. I'm very happy with it, but my IP keeps changing which is pretty annoying since my platform needs to be whitelisted on several feed servers.

Can I do something about that?

like image 349
Hans Wassink Avatar asked Apr 10 '26 03:04

Hans Wassink


1 Answers

You're probably using ephemeral ip address which provide connectivity from outside but these addresses can change over time. What you're looking for is static external ip address which never change (until you explicitly release it).

Go to the Create a new external static IP address page to create a new static external IP. Once created, you will need to assign this new static IP address to your instance:

  • In the Cloud Platform Console, go to the VM Instances page.
  • Click the Create instance button.
  • On the Create a new instance page, fill in the desired properties for your instance.
  • Expand the Management, disk, networking, SSH keys section.
  • Click Networking.
  • Under External IP, select a static external IP address.
  • Click the Create button to create the instance.
like image 61
DoiT International Avatar answered Apr 12 '26 15:04

DoiT International