Listing network daemons (listening processes) on Mac OS X with lsof

Quick help: lsof -iTCP -sTCP:LISTEN -nP
This will list all processes and their listening network sockets for TCP connections printing the results with numeric addresses and ports.