PDA

View Full Version : WARNING: UDP_OpenSocket: port: 27015 bind: Cannot assign requested address --> HELP!


Anusko
September 25th, 2003, Thursday September 25, 2003 12:44:52 PM
I have a machine at the company office running debian linux. I have a good line and I was able to get a dedicated ip to the machine. While I was very happy configuring hlds, when I tried to run it I got:

Auto detecting CPU
Using Pentium II Optimised binary.
Auto-restarting the server on crash

Console initialized.
scandir failed:/usr/steam/hlds_l/./valve/SAVE
scandir failed:/usr/steam/hlds_l/./platform/SAVE
Protocol version 46
Exe version 1.1.2.0/Stdio (cstrike)
Exe build: 13:41:36 Sep 9 2003 (2511)
couldn't exec language.cfg
WARNING: UDP_OpenSocket: port: 27015 bind: Cannot assign requested address
FATAL ERROR (shutting down): Couldn't allocate dedicated server IP port 27015.
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem
Thu Sep 25 21:43:07 BST 2003: Server restart in 10 seconds
Thu Sep 25 21:43:09 BST 2003: Server Quit

I'm using the folow comand line: ./hlds_run -game cstrike +maxplayers 12 +map de_aztec +port 27015 +ip xxx.xxx.xxx.xxx
When I run it without +port and +ip it binds the internal ip of the machine. Help me please, I'm getting crazy! :(

FatDaddy
September 25th, 2003, Thursday September 25, 2003 12:59:09 PM
What that means is that you have something which is already bound to port 27015.

You can either try to figure out what it is using netstat -a and ps aux.

My guess is that you already fired up hlds to test it and never completely killed the process. HLDS when run with ./hlds_run will create two seperate processes.

Or you can take the easy way out and change your command line to +port 27016.

so...
./hlds_run -game cstrike +ip xxx.xxx.xxx +port 27016 +maxplayers 12 +map de_aztec &

Anusko
September 25th, 2003, Thursday September 25, 2003 01:14:10 PM
changed the port, no luck :( it still binds the internal ip... :S
more help pls!!! :(

Milenko
September 25th, 2003, Thursday September 25, 2003 04:46:14 PM
It's always going to bind to the internal IP..HLDS binds whatever IP is physically on the machine.

Since you:

Server -> Router -> Internet

HLDS will pick up the IP the router gives you.

If you have the ports forwarded correctly at the router, then it won't matter.

Anusko
September 26th, 2003, Friday September 26, 2003 09:41:50 AM
The only thing that "separates" the machine from the internet is the main server's firewall and I have all the ports opened :/

Milenko
September 26th, 2003, Friday September 26, 2003 11:32:19 AM
All the ports?

You should only forward 27015 UDP to the server machine.

Once that's done, you can try connecting from home with the external IP.

OCHosting
April 22nd, 2004, Thursday April 22, 2004 01:41:09 PM
same problem... http://server.counter-strike.net/forums/showthread.php?s=&threadid=32069