Which processes use which ports?

These work, but the MUST be run as root to show the attached process. It will not give an error if you are not root:

netstat -tlp

lsof -iTCP -s TCP:LISTEN