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.

Share:
14,209

Related videos on Youtube

Navigator
Author by

Navigator

Updated on September 18, 2022

Comments

  • Navigator
    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

    image

  • Navigator
    Navigator over 5 years
    I am using ubuntu-server 16.04. I tried sudo iptables -A INPUT -p tcp --dport 5000 -j ACCEPT With No luck
  • Navigator
    Navigator over 5 years
    I 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
    Navigator over 5 years
    Any Idea how to resolve this?