Unix: find open port/process

To view all open network connections:

sudo netstat -nlp

To list all processes using tcp port 43796:

lsof -i tcp:43796

To list the pids using tcp port 43796:

fuser 1723/tcp

Leave a Reply