nc
SafePort checks & raw sockets
nc -zv <host> <port>
-zv tests a single port; -l listens. The lightweight standard for connectivity checks.
Examples
nc -zv db01 5432Test DB portnc -l 8080Listen on a port
Syntax
nc [-zv] [-l] <host> <port>
Before you run it
Close listeners when done.
Related commands
- ssSockets and listening ports
- telnetPlain TCP connection test
- Test-NetConnectionPing + port reachability
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store