Port Check Command Generator
Honest note: a browser cannot scan a remote port for you (that needs server-side privileges or a public API). This tool generates the correct check command + troubleshooting path — copy it and run it on your own machine to get the real result. No fake "click-to-scan" promise here.
Generate check commands
Enter a target host and port; the tool emits three complementary commands, each with "when to use / how to read".
Which command when
| Command | Purpose | Where to run |
|---|---|---|
ss -tlnp \| grep :80 |
Is 80 listening locally? | On the target host |
nc -vz host 80 |
Cross-host TCP reachability (default timeout) | From your machine |
nmap -p 80 host |
Port state open / closed / filtered | From your machine |
- Self-check first:
ss -tlnpshows whether the service process is up. Not listening → service problem, stop there. - Cross-host reachability:
nc -vzis light and fast; for scripted exit codes usenc -vz -w 3 host port; echo $?(0 = reachable). - Port state:
nmap -p 80 hosttellsopen(reachable) /closed(nothing listening or port closed) /filtered(firewall drop).
Troubleshooting path
connection refused → no service listening on that port, or the port is closed. Confirm the process with ss -tlnp on the target.
timeout / no response → likely a firewall drop or routing issue. Check whether nmap reports filtered, then tcpdump -n port 80 to see whether SYN packets are being dropped.
succeeded / open → the port is reachable; the problem is higher up (app-layer rejection, TLS, permissions).
Related tutorials
- TCP/IP state machine & troubleshooting — TIME_WAIT / RST / SYN half-open in one table
- Nginx reverse proxy 502/504 troubleshooting — the port-reachable-but-app-layer-error case