How to find out what processes are listening on specific ports in Ubuntu?
Assuming that you are root.
The 4th and 7th fields are what you want.
Alternatively you can get much more detailed information with lsof(1).
This works pretty well for me on linux only:
-a = All sockets -n = doNt resolve IPs -p = show Pids/Programs associated with each