How to Check Open Ports and Listening Services on Your Server

English

When setting up a network server and things aren't working quite right, you often find yourself wondering: Is it actually listening on the port?
1. Verifying that the server is actively listening
For example, to check port 5900 for a VNC server, run the following command in your shell:
$netstat -t | grep 5900
tcp 0 0 192.168.11.9:5900 192.168.11.6:64075 ESTABLISHED
tcp6 0 0 [::]:5900 [::]:* LISTEN
If something shows up, you're good to go.
2. Checking if the IP and port are reachable from the outside
You could disable Wi-Fi on your smartphone and use cellular data to test your client app, but if you need to check specific port details, a quick web search for network check tools can be very helpful.http://www.cman.jp/network/index.html2.1 Are you properly registered with DNS?
Since external IP addresses tend to change, I use a free dynamic DNS (DDNS) service. If you can't access your server via its hostname, you won't be able to connect when you're away from home.
Just click "DNS Check" from the menu on the left, enter your server name and domain, and it will perform an nslookup for you.http://www.cman.jp/network/support/nslookup.html2.2 Port Checking
Select "Port Check" from the left-hand menu, enter your server name or IP address along with the target port number (such as 5900 for VNC), and run the test.
If you see a message like:
"Successfully accessed host: xxxx.xxx.xxx, port: 5900."
Then you're all set!
If the check fails, the usual culprits are incorrect router port-forwarding settings or the server software not running properly.

Leave a Reply