List processes with their listening ports with netstat
netstat -nlpt
To include information of tasks which are executed with sudo privilege
sudo netstat -nlpt
netstat -nlpt
To include information of tasks which are executed with sudo privilege
sudo netstat -nlpt