Reputation: 1662
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.
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
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.
inventory-controller-port
and add these network tags http-server
, https-server
. For more information, check this documentation about updating firewall rules.inventory-controller-port
on your existing VM. To know more check this documentation about Adding tags to an existing VM.Upvotes: 2