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