Unable to Access Cloud Compute Instance External IP

I set up an instance of Google Cloud Computing:

  • Type of apparatus
    • n1-standard-1 (1 vCPU, 3.75 GB of memory)
  • Processor platform
    • Intel Haswell
  • zone
    • us-East1-s

I can ssh in using an external address.

I installed vncserver and can access it through port 5901 from the local host, as well as from the internal IP address.

I am trying to access it from a static external IP address, but it does not work.

I configured the firewall to open port 0.0.0.0/0 , but it is not available.

Can anybody help?

------ after further research from two-answer tips (thanks, both!), I have a partial answer:

The Google Cloud Compute instance was installed by default as prohibiting HTTP traffic. I reset the settings to allow HTTP traffic. I then tried troubleshooting advice to run a small HTTP service in python. I was able to get a response from the service over the Internet.

A brief description of the current situation is as follows:

  • External IP Available
  • It is enabled and works for SSH
  • It is enabled and works for HTTP
  • It doesn't seem to allow traffic from vncserver

Any idea how to set up a calculation instance to account for vncserver traffic?

+8
source share
5 answers

If you have already confirmed that the Google Firewall or your virtual machine is not blocking packets, you must ensure that the VNC service is configured to listen on the external external IP address .

You can always use a utility like nmap outside of a Google project to display port status information.

+3
source

The Google Cloud Compute instance was set by default to not allow HTTP traffic. I reset the configuration allowing HTTP traffic. Then I tried a troubleshooting tip to start a small HTTP service in python. I was able to get a response from the service over the Internet.

So the answer to the original question is, I can access the Cloud Cloud Compute's external IP address. My wider problem is still not resolved, but I will post a new, more specific question about this problem.

+1
source

enable http / https traffic from the firewall as needed. it will work !!

+1
source

Create an entry in your local ssh configuration file, as shown below, with the specified local direct port. In my case, this is an example of the IP address of the yarn that I want to access in a browser.

 Host hadoop HostName <External-IP> User <Local-machine-username> IdentityFile ~/.ssh/<private-key-for-above-user> LocalForward 8089 <Internal-IP>:8088 
0
source

In addition to firewall rules that allow HTTP traffic on both the Google Cloud Platform and the operating system of the instance, make sure you install a web server , such as Apache or Nginx.

After installing the web server, you connect to the instance using SSH and check to see if the following command has received an unsuccessful connection:

 $ sudo wget http://localhost 

If the connection is positive, it means that you can access your external URL:

 http://<IP-EXTERNAL-VM> 
0
source

Source: https://habr.com/ru/post/1258226/


All Articles