Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    836
    cPanel/Enkompass Access Level

    Root Administrator

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

    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?
    Michael

  2. #2
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    836
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I'll reply to my self - netstat!
    Michael

  3. #3
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    or

    lsof -i :<port number>

  4. #4
    Member Manuel_accu's Avatar
    Join Date
    Jun 2005
    Posts
    191

    Default

    Hi,

    simple command is nmap as mentioend below:

    nmap -sS -O <IP/host>
    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.
    nmap -sS -O -sV <IP/host>
    In reverse you can also check the which port is using which pid with the help of fuser command

    # fuser http/tcp
    shows the list of PID used by httpd process.

    netstat is also good shows network statastics.

    thx
    Linux Web Administrator Guide
    Optimize, secure and performance tunning for Apache || MySQL5.1 Cluster How To
    The visionary conceives the impossible, The missionary makes it possible. ...Gita.

  5. #5
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by rs-freddo
    I'll reply to my self - netstat!
    Actually "netstat -p" so you can see what program is running on what port.

  6. #6
    Member Manuel_accu's Avatar
    Join Date
    Jun 2005
    Posts
    191

    Default

    nmap as mentioend above will provide you descriptive output of running program on which port!
    Linux Web Administrator Guide
    Optimize, secure and performance tunning for Apache || MySQL5.1 Cluster How To
    The visionary conceives the impossible, The missionary makes it possible. ...Gita.

  7. #7
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    nmap might not be installed on all boxes in standard setup, netstat usually is - but check out http://insecure.org/nmap/download.html for download, install instructions.

Similar Threads & Tags
Similar threads

  1. DOD:S Not binding to IP/Port when started.
    By Cyber-Surfer in forum cPGS Discussions
    Replies: 2
    Last Post: 05-28-2010, 02:16 PM
  2. Where I can find cPanel on FreeBSD port collection?
    By sharpknifeedge in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 01-08-2009, 09:35 AM
  3. Binding CPANEL to one IP
    By MadBoy in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-02-2006, 11:55 AM
  4. Changing SSH port, binding to one IP... good or bad idea?
    By Gliebster in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-13-2006, 03:11 AM
  5. exim binding to port 443
    By chadkeep in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-23-2002, 01:33 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube