Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'Bind/DNS/Nameserver' 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:
    168
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. rs-freddo

    rs-freddo Well-Known Member

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

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,719
    Likes Received:
    97
    Trophy Points:
    328
    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:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. brianoz

    brianoz Well-Known Member

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

    Manuel_accu Well-Known Member

    Joined:
    Jun 19, 2005
    Messages:
    191
    Likes Received:
    0
    Trophy Points:
    166
    nmap as mentioend above will provide you descriptive output of running program on which port!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. mctDarren

    mctDarren Well-Known Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice