How to find out what ports are listening on ubuntu?

Discussion in 'General Computer Chat' started by LainJeremy, Jul 28, 2019.

  1. LainJeremy

    LainJeremy New Member

    Messages:
    24
    Hello,

    How to find out what ports are listening in ubuntu?
     
  2. UnholyVision

    UnholyVision Active Member

    Messages:
    176
    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"
     
  3. LainJeremy

    LainJeremy New Member

    Messages:
    24
    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.
     
  4. beers

    beers Moderator Staff Member

    Messages:
    8,388
    nmap localhost
    netstat -an

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

Share This Page