Configure a static IP address
Google Cloud Platform instances are launched with a dynamic IP address by default, which means that the IP address changes every time the server is stopped and restarted. In many cases, this is not desired and so, users also have the option to assign the server a static IP address.
NOTE: For servers launched through the Bitnami Launchpad for Google Cloud Platform, select the cloud server you wish to modify in the Bitnami Launchpad and click the “Manage in the Google Console” button to access the Google management console.
To configure a static IP address:
Log in to the Google Cloud Console using the Google Account associated with your project.
Select your project from the list of available projects.
Click the “Hamburger” button on the left side of the top navigation bar:
Select the “Compute -> Compute Engine -> VM Instances” menu item.
The resulting page displays a list of VM instances. Select the instance which you wish to configure.
In the “External IP” section, select “New static IP address”
Save your changes.