How to Check for Open Ports in Ubuntu

There are various ways to view for open ports on your local Ubuntu/Linux machine. However, I particularly prefer two methods/command below, since it is simple, and without any third-party application.

Open your command prompt, and type:
netstat -an | grep "LISTEN "

Or, another method:
sudo netstat --tcp --udp --listening --program

It will list all ports that your machine are listening to. The latter method will even shows the program name associated to it.

Enjoy.



Related posts:
  1. GrNotify: Your Google Reader Feeds Notification I’m addicted to my rss feeds. I go over the...
  2. Installing Google Gadgets on Ubuntu 8.10 Google Desktop gadgets are interactive mini-applications that can be placed...
  3. How To Share Media Between Xbox 360 and Linux I’ve got a little project going on in the past...
  4. Upgrading to Ubuntu 8.10 The long awaited Ubuntu 8.10 has been released! I’m upgrading...
  5. Delay Print Screen in Ubuntu in Ubuntu, when there’s menu active or visible, pushing ‘Print...

Leave a Comment