List all listening ports in OS X (tested with Mavericks)

sudo lsof -i4 -P -n |grep LISTEN

Comments