FreeBSD port command?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mr Pheer
    So Fucking Banned
    • Dec 2002
    • 22082

    #1

    FreeBSD port command?

    Anyone know if there is a command to show what ports are being used by what app?
  • WiredGuy
    Pounding Googlebot
    • Aug 2002
    • 34513

    #2
    A portscanner should tell you which ones are running/open. I don't think its easily possible to tell what is actually running on that port unless its a standard (ie: 25 for SMTP, etc...).

    WG
    I play with Google.

    Comment

    • fuzebox
      making it rain
      • Oct 2003
      • 22353

      #3
      Type "netstat", and look for services in the "LISTEN" state...

      netstat -n if your dns lookups are being slow.

      To see what process is using what port, install lsof from ports (/usr/ports/sysutils/lsof) and look at the TCP entries...

      Comment

      Working...