Sed -i s/password123/ $SERVER_PASSWORD/g " $cfg_file " " $steamcmd_home/steamcmd.sh " +login anonymous +force_install_dir " $install_dir " +app_update 232330 validate +quit Mkdir " $steamcmd_home " & cd " $steamcmd_home " For example: rcon bot_quota 20Įxport install_dir=/home/steam/css_serverĮxport steamcmd_home=/home/steam/steamcmdĮxport steam_sdk32=/home/steam/.steam/sdk32Įxport cfg_file= " $install_dir/cstrike/cfg/server.cfg "Īlias cfg= 'cd $install_dir/cstrike/cfg ' Now you can issue commands to the server. For reference, I use the following ports - UDP 1200, TCP/UDP 25000 - 25039.įrom inside the game, once connected to the server, you can open the console ` and type the following to connect and run commands on the server.
It's pretty straight forward and there are many online resources to find out how to perform this. allowing internet users to connect through your firewall). Other config files can be modified in this directory, simply remove the _default suffix for files to take effect. Update it, and restart your server for changes to take effect - there are plenty more config options documented on forums and youtube videos. If you want to setup up bots (AI players), add the below server.cfg file to the C:\Program Files (x86)\Steam\steamapps\common\css_server\cstrike\cfg\ directory. If you want to install a different server, use an AppId (other than 232330) from the Dedicated Servers List.
Closing the new window, will stop the server.You can now connect to your server, it will be listed under the LAN tab in-game.It will download and install the server, then run the server in a new window on port 27015. Execute the install_update_run_server.bat batch script (below).C:\Program Files (x86)\Steam\steamapps\common\steamcmd) Download and unzip (link is legit, it's referenced here on Valve's instructions) to the Steam home directory (e.g.Installation / Updating / Running a Server Last Updated: 1st April, 2016 Steam > Counter-Strike: Source Windows Dedicated Server setup