SRCDS Steam group


Socket bind failed (Cannot assign requested address)
#1
I've just recently set up a CS:S dedicated server for an upcoming LAN party. When I first set it up the server was being assigned a DHCP address (192.168.1.237). I've now set it to use a static address (192.168.1.11) but when I start the server I am getting this:

Socket bind failed (Cannot assign requested address)
Network: IP 192.168.1.237, mode MP, dedicated Yes, ports 27015 SV / 27005 CL


The server still shows up in the browser under the LAN tab as having the address 192.168.1.11 but I cannot rcon into the server. It gives me the error: Unable to connect to remote server (192.168.1.11:27015)

I have tried using +ip 192.168.1.11 when starting the server which gets rid of the socket bind failure and the network address is listed as 192.168.1.11. In addition I can also rcon into the server. However the server no longer shows up in the server browser under the LAN tab.

The only thing in my server.cfg right now is rcon_password "password"
Reply
#2
(03-18-2011, 12:20 PM)Matthias Wrote:  I have tried using +ip 192.168.1.11 when starting the server which gets rid of the socket bind failure and the network address is listed as 192.168.1.11. In addition I can also rcon into the server. However the server no longer shows up in the server browser under the LAN tab.

common problem when the IP auto-detection fails (e.g. because you have more than one network interface in your server). just have the people connect to the server via client console (connect 192.168.1.11) or hlsw or so.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#3
I imagined this would be the only solution. Unfortunately the LAN party is a bit of a free for all with 90+ plus people coming. I'm neither running it nor have any control over the network there. I would have liked it to show up in the LAN tab so that anyone attending could see it. I guess I'll just have to see what happens when I get there.

Thanks for the reply.
Reply
#4
Try some of the following:
-ip 192.168.1.11
-ip 0.0.0.0

Or try restarting the computer if you haven't already.
Looking for a game server? Visit fullfrag.com and pick one up as low as $2.50 / mo!
Reply
#5
(03-19-2011, 08:39 PM)loopyman Wrote:  Try some of the following:
-ip 192.168.1.11
-ip 0.0.0.0

Or try restarting the computer if you haven't already.

Awesome, +ip 0.0.0.0 fixed the LAN browser issue and rcon issue.
Thanks!
Reply
#6
Important to note that:

-ip
is not the same thing as
+ip

(-) are commands fed to the binary/executable to get it started with the desired parameters
(+) are cvars fed to the game engine AFTER it starts.

http://developer.valvesoftware.com/wiki/Command_Line_Options#Example_startup_command_for_HLDS_on_Linux
Reply
#7
The correct form for specifying the ip is +ip. There is no -ip switch.
Reply
#8
(03-23-2011, 10:49 AM)Matthias Wrote:  The correct form for specifying the ip is +ip. There is no -ip switch.
With all due respect, that link is from the Valve developer wiki. I think I'll trust their documentation (crappy as it is).
Quote:Source Dedicated Server

Command-line arguments for the Source Dedicated Server executable (srcds.exe, srcds_run)
Command-line parameters
-ip
Specifies the address to use for the bind(2) syscall, which controls on which IP addresses the program is reachable on. It must either be a local address (an addresses of the host it runs on) or 0.0.0.0 (the wildcard). This has nothing to do with externally-visible addresses in NAT setups.
Quote:Some useful console variables

* +hostname "Server Name" - Specifies the name of the server.
* +ip - Specifies the IP when multiple network cards are installed (Old, but still works).
If the wiki is wrong or incomplete, please share your vast knowledge and experience with them so that they will no longer mislead poor souls like myself.
Reply
#9
I suppose it does work, just tested it out, but everything I had seen has said +ip and +ip seems to work fine.
Reply
#10
I really do appreciate the advice. I'm just getting started at this so I've been doing a lot of research. As badly as their wiki is written, I still have to consider it to be authoritative or what hope do I have.

Love that script btw, and introducing me to screen. Somewhere in the back of my mind I always knew you could do that with a shell but I'd long since forgotten how.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)