Open a port on google cloud VM instance

1.1k views Asked by At

Could not open port on GCP Compute Engine VM instance

Hi,

I need to open port 5000 on my GCP instance. Tried doing that by adding a firewall policy opening all ports to the region. See Image

Didn't work, pinged the port and it is still closed.

Port 5000 closed

% telnet <ip_address> 5000
Trying <ip_address>...
telnet: connect to address <ip_address>: Connection refused
telnet: Unable to connect to remote host

Port 22 works

% telnet <ip_address> 22
Trying <ip address>...
Connected to <ip address>.bc.googleusercontent.com.

What else do I need to do?

Thanks!

1

There are 1 answers

0
beanie On

Problem solved and the port is open! I didn't do anything else, the configs were fine. Maybe a delay / cache somewhere.

Thanks @armando-cuevas