To show which processes are listening to which ports on a Linux machine you can use:
netstat -atp | grep -i "listen"
On Mac OS X you can use:
lsof -i | grep -i "listen"
To show which processes are listening to which ports on a Linux machine you can use:
netstat -atp | grep -i "listen"
On Mac OS X you can use:
lsof -i | grep -i "listen"