I have created a Google Compute Engine instance and installed a web server and my app. Now I am having trouble finding information on setting up an external address so that I can access the instance from outside Compute Engine.
How can I setup an external address for my instance so that it is accessible through clients, such as web browsers?
Below are the steps for configuring firewall for allowing HTTP traffic on VM. Login to Google Cloud Console and navigate to "VPC network" in "NETWORKING" section. Provide Firewall rule details as listed below. Select tcp and use port 80.
Connect through a browser from the GCP MarketplaceBrowse to the Google Cloud Platform console and sign in if required using your Google account. Find and select your project in the project list. Select the “Compute -> Compute Engine” menu item. Locate your server instance and select the SSH button.
Because you've created and setup your machine, so the only way to give it a static ip address is:
and one more thing need to be noticed, you will have to check and configure your firewall to make your GCE instance be accessible externally.
By default, GCE opens only SSH port to outside, and all ports for internal.
If you have any purpose to open any port, I suggest you to create a new firewall to deal with this sort of operation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With