Mac Netstat with PID

On a Mac to list processes and the ports that are listening on, type the following into a terminal window:

sudo lsof -i -P

Leave a Reply

Your email address will not be published.

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