From Hackepedia
Jump to navigationJump to search

You're unsuccessfully trying to connect somwhere. You'll need to know the DNS or IP of the server hosting the daemon, as well as the port number it listens on.

In our example, we'll try to connect to port 80 of (The common www port, often hidden in your Browser).

  • Can you resolve DNS?
  • Can you ping the server? (Verifying the machine is up)
  • Do you have to allow outbound access to this port on your firewall? on your router?
  • telnet to the port (we prefer netcat over telnet for this if you it installed)
$ telnet 80
Connected to
Escape character is '^]'.

This tells me that the port is listening. Just for fun, here is an example showing that there is no daemon listening on port 79 of this server:

$ telnet 79
telnet: Unable to connect to remote host: Connection refused