netstat pid mac

December 29, 2011

having trouble identifying the pid using netstat on a mac?

Try this instead:

# sudo lsof -i -P

This will list all open files and the current socket they are using and the actual port (using an integer).