LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-30-2009, 04:22 PM   #1
Skillz
Member
 
Registered: Sep 2007
Posts: 252

Rep: Reputation: 32
Failed to bind port..


I am trying to run a program as a regular user on port 7777, but in the log it says its unable to bind that port and the program wont start. Pretty sure it's past the 1023 limit port, and I've even tried running it as root, still same problem.

Running CentOS 5.3
 
Old 06-30-2009, 04:29 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
What exactly is the error message you're getting?
Check if there's no other programs (or even remains of an old copy of your current one) listening to that port. The command is
lsof
 
Old 06-30-2009, 04:36 PM   #3
Skillz
Member
 
Registered: Sep 2007
Posts: 252

Original Poster
Rep: Reputation: 32
This is the error:

Code:
Sockets: Socket queue 262142 / 262142
Failed to listen: Sockets: binding to port 7777 failed (-145026240)
WinSock shut down
appError called:
Dedicated server can't listen: Sockets: binding to port 7777 failed (-145026240)
I ran this command.

lsof | grep 7777

and it turned up nothing, although running lsof on it's own returned a BUNCH of results.
 
Old 06-30-2009, 07:23 PM   #4
Skillz
Member
 
Registered: Sep 2007
Posts: 252

Original Poster
Rep: Reputation: 32
I've tried other ports too, up to the 10s thousands and all the ports wont bind. Not sure what the deal is.
 
Old 06-30-2009, 08:41 PM   #5
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
I don't really understand how WinSock got into the picture...
What program are you trying to run? Is it under Wine or a virtual machine?
 
Old 06-30-2009, 09:27 PM   #6
Skillz
Member
 
Registered: Sep 2007
Posts: 252

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by Uncle_Theodore View Post
I don't really understand how WinSock got into the picture...
What program are you trying to run? Is it under Wine or a virtual machine?
It's an Unreal Tournament dedicated server, the Linux build. I have the same version running on another CentOS 5.3 server without any issues. I don't understand why this one is giving me problems.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I bind to a serial port using BIND Socket API?? venkat_p257 Linux - General 2 12-04-2007 05:49 AM
SSH: error: Bind to port 22 on 0.0.0.0 failed: Address already in use. Swakoo Linux - Security 6 05-08-2007 04:24 AM
Logwatch reports SSHD Killed: / Failed to bind: 0.0.0.0 port 22 rioguia Linux - Security 1 08-13-2005 12:24 PM
bind failed the_imax Linux - Networking 1 05-03-2005 07:01 AM
bind failed chadi Linux - General 0 12-28-2004 06:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration