SRCDS Steam group


SRCDS command-line variables; need help
#1
(I've searched this forum and many, many other places and tutorials without finding definitive, confirmed answers on this basic question of command-line variables)


Background on what I'm trying to do, and what I've done so far:

* I'm trying to set up a dedicated Source server from a PC that's on my home LAN, to run L4D2. I have a second PC on the LAN to act as a client. I'm doing this so that the server can run a particular Sourcemod plugin, and I know that I'll have to also install Metamod and Sourcemod to make it work once SRCDS is working. The goal is for me to access the server from my client PC over the LAN, and for a friend to play on the server at the same time from the internet.

* The server is running Windows XP Service Pack 3. The clients are running Windows 7 64-bit.

* I've set up the server with a static, internal IP of 192.168.0.20, and confirmed that this is assigned to the server as shown in my router's admin interface. The server can access the internet and web sites just fine.

* I've checked what my external IP is from the [URL="http://www.whatismyip.com/"][COLOR="RoyalBlue"]www.whatismyip.com[/COLOR][/URL] website. It's the same as shown in the router's admin interface.

* I've forwarded port 27015 to the server's static IP, and confirmed that the port is opened correctly to that IP via Portforward.com's PFPortChecker.

* I've downloaded and installed the HLDS Update Tool into C:\Program Files\Valve\HLServer directory, and allowed it to update and install all the necessary L4D2 files as well as srcds.exe, into "C:\srcds\left4dead2".

* The server's server.cfg file is located in "C:\scrds\left4dead2\left4dead2\cfg". The file is very basic, and is identical to the basic server.cfg file from the "Left4Dead 2 Dedicated Server Setup Guide for Windows" post (the server.cfg file is shown below).

* I'm able to launch SRCDS on the server.

* Once I've launched L4D2 on the client pc, I'm selecting "Best Available Dedicated" server, and using the console command "mm_dedicated_force_servers xxx.xxx.xxx.xxx" (where the xxx.xxx.xxx.xxx is the external IP) to force the lobby to connect to the LAN server.


However, I can't connect to the server from within L4D2 on the LAN pc and neither can my friend from his external pc.


So, my real question is about the command-line variables for the shortcut to launch SRCDS. There is A LOT of conflicting information all over the web about things like:

* what are the required variables that must be used

* which variables are used for what function

* which variables need a "+" or "-" in front of them (and why)

* are both the internal and external IP addresses required in the shortcut, or only one, or neither, and which variables are needed for external and internal IP addresses

* which variables might be deprecated, and shouldn't be used, and what their replacement variables are (e.g., I see people using "hostport" and others using "port" for the same purpose)


And so, if you wanted to do what I'm trying to do, what would the shortcut's command line consist of?


Many thanks in advance for any help you can provide.


Here are the server.cfg file contents:
Code:
hostname "(hostname removed)"
rcon_password "(password removed)"
sv_search_key (search key removed)
sv_allow_lobby_connect_only 0
hostfile "my_host.txt"

mp_disable_autokick 1
sv_alltalk 0
sv_consistency 1
sv_voiceenable 1
sv_region 255 //sets region to all areas
sv_log_onefile 0
sv_logbans 1
sv_lan 0
sv_pure "1"
sv_cheats "0"

sv_steamgroup "4011912" //my Steam Group ID as shown in the Steam > Group Admin menu
Reply
#2
You should post your startup command line that you use to launch the server.

From there we can see what to add or remove for your server to work.
Earn Points, get Free Rewards with your Amazon Points!
Points2Shop

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)