How do you list the network open ports on your server and the process that owns them? The answer is simple use the following command (must run as root):
sudo lsof -i
sudo netstat -lptu
via Linux List The Open Ports And The Process That Owns Them.
I don’t know why I keep forgetting this.