Linux networking · Ports and connections
Find what is using a port
Show the socket and process for a port.
sudo ss -ltnp 'sport = :8080'
Official Linux networking documentation
More ports and connections commands
- List listening ports
- Show established connections
- Summarize socket counts
- List processes using a port
- Scan a host's open ports
All ports and connections commands · Linux networking cheatsheet