I have set up and enable a VM to Allow HTTP traffic and Allow HTTPS traffic but i cannot access the external IP in a browser. Im using the VM for web development testing and need to see changes made. The external IP address is listed as (ephemeral) but from what i've read, all this means is that the IP will not persist through shutoff/restart.

  • What error are you getting? Timeout / Connection refused? Did you try to follow this guide from google? cloud.google.com/compute/docs/tutorials/basic-webserver-apache (especially the firewall rules part) – User025 Nov 24 '18 at 15:01
  • After about 30 seconds i get "This site can’t be reached took too long to respond.", would it have anything to do with the .htaccess active directory? Im trying to find that to change the directory. – Tyler Nov 24 '18 at 15:12
  • This could mean that your web service is not running, please try the curl suggestion from Steven' answer and check if apache or nginx is running – User025 Nov 24 '18 at 15:32
  • How exactly did you "allow" the traffic? – Albin Nov 24 '18 at 17:02

While the mass of my experience with cloud based products is AWS based ...

Please verify your firewall (Security Group Rule) configuration for this VM. Please verify that port 80 (and 443 if using SSL) are enabled to allow traffic from to your VM.

When configuring Security Group Rules in the cloud is to indicate to/from anywhere. So in this case you are allowing connections from anywhere ( to connect to your VM.

Then please verify your webserver configuration. Are you using Apache or Nginx?

Can you curl the website from the terminal? e.g. curl localhost By using the curl command you will be able to determine that the webserver is in fact alive and ready for connections to minimize the troubleshooting time while you figure out the security group rules.

  • While there are times where you want to restrict access to a cloud resource, you would specify the IP address(es) that you permit connections from. While troubleshooting Security Group Rules I find it easiest to start with, confirm connections are working as expected then replace with a specific address(es). – Steven Nov 24 '18 at 17:20

Thank you for the assistance, by not paying attention and enabling both HTTPS and HTTP traffic google adds a secure connection to the IP url but I never had a certificate for the VM thus removing the 's' from the URL it generates in https:// allowed me access.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.