Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2003
    Location
    rowland hts, california
    Posts
    791

    Unable to bind to specific port

    I was trying to run a application on my linux box and it told me it could not bind to the allocated port.

    I did a netstat -ln and saw that nothing was being listened to on the port.

    I rebooted, and still would not let me bind to that port.

    How else am I supposed to determine whats stopping me?

    Nothing in iptables nullrouting traffic away from the port either..


    Thanks in advance
    josh

  2. #2
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,294
    netstat -lntpe
    Last edited by Steven; 03-19-2004 at 09:29 PM.
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  3. #3
    Join Date
    Mar 2004
    Location
    Mesa, AZ
    Posts
    46
    Which application are we talking about? A tool which literally owns me is sockstat ( http://www.reznor.com/tools/sockstat.c ). If it's a daemon (http, mysql, whatever) and it starts at boot, and you try and start it again, the previous instance will, of course, have posession of the port.

    Hope that helps
    :: [email protected]
    :: www.hakkrdan.org
    ::
    :: jack of all trades

  4. #4
    Join Date
    Dec 2003
    Location
    Boston, MA
    Posts
    603
    This might sound really idiotic.

    Check the IP and see if the ip your trying to use is binded onto the server. If the ip is binded check to see if your config or program is using the proper ip.
    Axcelx Technologies - James
    Boston Colocation | Boston VPS
    Massachusetts Server Colocation and Dedicated Servers

  5. #5
    Join Date
    Feb 2004
    Posts
    772
    Hi,

    Can I know which application you have tried? Have you tried listening to some other ports? Try netstat -lnp | grep port number
    It indicates you which process is listening on that port.

    Regards,

    Bright

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •