How to check which ports are listening on Ubuntu

If you are run­ning your own vps, or even doing local devel­op­ment on an Ubuntu, some­times your appli­ca­tion wont start because it screams that another port is already lis­ten­ing on the port you are try­ing to setup your appli­ca­tion on.

To see which processes are lis­ten­ing on a port, sim­ply issue the fol­low­ing command.

sudo netstat -tulpn

You will see a tab­u­lar list of processes and the ports they are cur­rently lis­ten­ing on.

Ryan Sukale

Ryan is a UX engineer living in San Francisco, California.

You may also like...