简体   繁体   中英

Open a port on google cloud VM instance

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!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM