View process that is listening on port

$ lsof -i:port

for all ports:

$ lsof -i