03-18-2011, 12:20 PM (This post was last modified: 03-18-2011, 12:28 PM by Matthias.)
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:
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"
(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.
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.
03-23-2011, 10:58 AM (This post was last modified: 03-23-2011, 11:03 AM by Dragineez.)
(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.
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.