Check Open Ports on Mac OS X Using `lsof` (similar to `netstat` on Linux)

To list all ports where server software listens to on a computer running Mac OS X, run this in the terminal:

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

resources

Comments