Who is listening on a given TCP port on Mac OS X?

lsof -n -i4TCP:$PORT | grep LISTEN