title: Who is listening on a given TCP port on Mac OS X?
body: <p>On Linux, I can use <code>netstat -pntl | grep $PORT</code> or <code>fuser -n tcp $PORT</code> to find out which process (PID) is listening on the specified TCP port. How do I get the same information on Mac OS X?</p>