bihire boris
bihire boris

Reputation: 1662

Can't access Google Cloud Compute Instance External IP (boot fedora35)

I have a nodejs app running inside it a vm instance. I created a firewall rule opening port tcp:5000. It works locally (inside vm) and I am able to verify the connection via

sudo wget http://localhost:5000

this gives status 200 ok.

when I replace the localhost with the vm external Ip address I get a connection time out. enter image description here enter image description here

I have tried most things I could get on the internet but now I am tired. Its my first time interacting with gcp so I guess it's expected.

Upvotes: 0

Views: 1159

Answers (1)

salvinojr
salvinojr

Reputation: 133

The Network tags on the VM instance do not match your firewall rule inventory-controller-port. The Compute Engine Instance has these network tags http-server, https-server. To resolve this issue, these are your options.

  1. Update the Firewall rule inventory-controller-port and add these network tags http-server, https-server. For more information, check this documentation about updating firewall rules.
  2. Add additional network tags that you added on the Firewall rule inventory-controller-port on your existing VM. To know more check this documentation about Adding tags to an existing VM.

Upvotes: 2

Related Questions