The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I find out what is binding to a port?

Discussion in 'Bind / DNS / Nameserver Issues' started by rs-freddo, Jun 16, 2006.

  1. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    I'm finding problems using port 465. I know linux has a command to see what programs are binding to what ports. Just can't remember what the command is?
     
  2. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    I'll reply to my self - netstat!
     
  3. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,383
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    or

    lsof -i :<port number>
     
  4. Manuel_accu

    Manuel_accu Well-Known Member

    Joined:
    Jun 19, 2005
    Messages:
    191
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    simple command is nmap as mentioend below:

    Scans all port and list it. It also tries to determine what operating system is running on each host that is up and running.

    There are many ways to find the port and maped services. I would suggest you nmap, if you will use this with proper parameter combination it will shows you the list of open ports with programs bind with it alon with program version.
    In reverse you can also check the which port is using which pid with the help of fuser command

    shows the list of PID used by httpd process.

    netstat is also good shows network statastics.

    thx
     
  5. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Actually "netstat -p" so you can see what program is running on what port.
     
  6. Manuel_accu

    Manuel_accu Well-Known Member

    Joined:
    Jun 19, 2005
    Messages:
    191
    Likes Received:
    0
    Trophy Points:
    16
    nmap as mentioend above will provide you descriptive output of running program on which port!
     
  7. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page