Linux networking · Ports and connections
Scan a host's open ports
List open ports on a host. Only scan systems you own or have permission to test.
nmap -sV -p 1-1024 192.168.1.10
Caution: Scanning networks you don't control may be illegal or break policy.
Official Linux networking documentation
More ports and connections commands
- List listening ports
- Find what is using a port
- Show established connections
- Summarize socket counts
- List processes using a port
All ports and connections commands · Linux networking cheatsheet