Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a service i just installed on a ubuntu workstation machine. Say its running under port 511. I can connect locally :

telnet localhost 511

When i try to connect from a remote machine it fails

telnet 511

Whats wierd is i tried to connect locally using the ip address and i get the following error:
"Unable to connect to remote host: Connection Refused"

I checked the status of the firewall:

sudo ufw status

and get back "status:inactive"

So does anyone know why i can't connect remotely since the firewall is disabled and why can't i connect locally using its ip address. I don't know if this matters but its running under esxi.

share|improve this question
up vote 0 down vote accepted

A few things to try (in no particular order):

  1. Run ifconfig -a on your Ubuntu VM to determine if the assigned NIC has the assigned properly.

  2. Run iptables -L on your Ubuntu VM to determine if any filters are in place. This is a "just making sure" type of check.

  3. Run nestat -antup|grep 511 on your Ubuntu VM to determine if the service is listening. It could be that your service is only listening on the lo interface.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.