In our example, we'll try to connect to port 80 of hackepedia.org. (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 hackepedia.org 80 Trying 184.108.40.206... Connected to hackepedia.org. 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 hackepedia.org 79 Trying 220.127.116.11... telnet: Unable to connect to remote host: Connection refused