Check listening ports and connectivity
Updated 27 Nov 2026 ports troubleshooting
Find out whether a service is listening and whether traffic can reach it.
1. Is it listening?
sudo ss -tlnp
Look at the local address. 127.0.0.1:8080 accepts only local connections; 0.0.0.0:8080 or *:8080 accepts connections on all interfaces.
2. Does it answer locally?
curl -sv http://127.0.0.1:20002/ 2>&1 | head -20
3. Does the server's firewall allow it?
sudo ufw status # Ubuntu, Debian
sudo firewall-cmd --list-all
4. Is the port reachable from outside?
From your own computer:
nc -vz 203.0.113.10 20002
On shared-IPv4 plans use one of the forwarded ports listed on the server page. The service must listen on the matching server port.
5. Outbound tests from the server
curl -sI https://example.com | head -1
nc -vz -w5 example.com 443
Ports 25, 465 and 587 time out unless a mail review has been approved.