Closed travi closed 9 years ago
lsof -i TCP:$PORT | grep LISTEN
use sudo for applications not running as current user
sudo
for windows: netstat -aon | grep "LISTENING[[:space:]]*2020"
netstat -aon | grep "LISTENING[[:space:]]*2020"
oops, thats the process id, not the port. would need a better regex to search by port
netstat -aon | grep "LISTENING" | grep ":80" would be better
netstat -aon | grep "LISTENING" | grep ":80"
lsof -i TCP:$PORT | grep LISTEN
use
sudo
for applications not running as current user