Ports in use on the Mac

Q. How do I know which ports are currently in use?

A. Run the following from the terminal window:

sudo lsof -i -P | grep -i "listen"

Leave a Comment

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