netstat pid mac

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).

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.