How to find out what ports are listening on ubuntu?

UnholyVision

Active Member
If you want a GUI based one I would suggest etherape. Since you're doing Ubtuntu based, "sudo apt-get install etherape". It draws out lines to show what is connecting where on the network and clicking thing further shows more information like the ports and other goodies.

If you're just looking to see it in a terminal then. "ss -lntu"
 

LainJeremy

Member
sudo apt install zenmap

Zenmap graphical user interface program that can be used in ubuntu to list the ports.
You can do a zenmap on localhost to see what ports are being used.
 

beers

Moderator
Staff member
nmap localhost
netstat -an

The first will scan yourself for listening hosts, the second will tell you which processes are bound to which ports.
 
Top