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

Your email address will not be published. Required fields are marked *

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