Unable to connect to remote host: Connection refused
14,209
From your netstat
output there is nothing listening on the port 5000 so connection is refused.
Related videos on Youtube
Author by
Navigator
Updated on September 18, 2022Comments
-
Navigator over 1 year
I have created vm instance in gcloud. And setup firewall rule to allow connection from port 5000.I added network tag to my vm instance.
But if i test the connection by teneting to port 5000 I get
telnet: Unable to connect to remote host: Connection refused
Content of netstat -lnp
-
Navigator over 5 yearsI am using ubuntu-server 16.04. I tried sudo iptables -A INPUT -p tcp --dport 5000 -j ACCEPT With No luck
-
Navigator over 5 yearsI tried **sudo iptables -A INPUT -p tcp --dport 5000 -j ACCEPT ** with no luck. The content of netstat still not showing port 5000 listening. I am using ubuntu 16.04
-
Navigator over 5 yearsAny Idea how to resolve this?