Counter-Strike: Source

Counter-Strike: Source

177 ratings
Counter-Strike: Source Dedicated Server (SteamCMD) [English/Englisch] [Windows]
By Zeromix
This guide will show you, how to setup a Dedicated Server with SteamCMD.

INFO: Please make sure, to have opened your Ports!
TCP/UDP: 27015-27050

German Tutorial:
http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=394849912

I also created a tool, that automates the installation process. You can find this tool here:
https://gtm.steamproxy.vip/groups/ServerTool
   
Award
Favorite
Favorited
Unfavorite
Download
First of all download this file and unzip it in a folder:
https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
Login in
Run the file, then you need to type the following to create a folder, where the server files will be deployed. Here it will be called "css_ds"
force_install_dir ./css_ds/

After that, we will log into the SteamCMD by using the anonymous login:
login anonymous
Downloading the files
After SteamCMD has successfully we will start downloading the server files.
app_update 232330 validate
It might take some while, depending on your internet connection.
After the download has finished you can close SteamCMD by typing
exit
into it.
Start the server
The best option is to create a .bat file in your "css_ds" folder (e.g. start.bat):
start srcds.exe -console -game cstrike -secure +maxplayers 22 +map de_dust

Info: "-secure" means that your server is VAC secured, otherwise use "-insecure" to disable VAC.
Maxplayers logically means how many players can join the server.
You can also change the port with "-port 27015"
Map defines with which map the server starts.
Download the config
It is time to conifgurate your server. For this purpose I created a pre made cfg, which can be downloaded over this link:
https://raw.githubusercontent.com/Zeromix9/Server-Creation-Tool/master/Server%20Configuration%20Files/Counter-Strike%20Source%20Server%20Config%20English.txt
Backup Link:
https://pastebin.com/e3f89ijz

Now you only need to put it into:
YOUR SERVER-FOLDER\css_ds\cstrike\cfg
Remember, that it needs to have this name: "server.cfg"

Thats it. Have fun!

Note:
Please keep in mind that you need to open your ports so that other players can connect or you simply use a VPN-Tool like Hamachi.
Configurate Sourcemod/Add Admins
At first you will need "Metamod Source" you can get it from here.[www.metamodsource.net]
You have to unzip the files in the following folder:
C:\Steam-Server\css_ds\cstrike

By now there should be an "addons" folder.
Now you need Sourcemod, you can get this here.[www.sourcemod.net]
You can also get the Plugins from there later.

Also extract that in this folder:
C:\Steam-Server\css_ds\cstrike

For the following you will need your SteamID, you can find yours out here:
http://steamidfinder.com

To configurate an admin, go to:
C:\Steam-Server\css_ds\cstrike\addons\sourcemod\configs
and open the
admins.cfg

As you can see, you just have to add something like this:
"Zeromix" //A name for yourself { "auth" "steam" "identity" "STEAM_0:1:31843021" "flags" "z" //Access Commands }

You can see the flags in the
admin_levels.cfg
file.

If you have configurate it, write in the chat "!admin" or in the console "sm_admin" to open the menu.

And that´s it! Have fun! ^_^
Frequently Asked Questions
I can not see my server / No one can connect to my server
Please make sure, that you have opened all the required ports in your router. If the everything is set correctly, but the problem still occurs, please contact your internet provider.
Or look for your router model here:
https://portforward.com/router.htm

Is there another way instead of opening the ports?
Yes, you can also host your server through a VPN network like "Hamachi". Of course only the people in the VPN network will be able to join the server then.
If forwarding your ports doesn´t work, please contact your ISP, i won´t be able to help you.

How can i change my server port?
Just edit the bat file with "-port 27015"

The SteamCMD download failed! What should I do now?
Mostly you just need to retry the download, then the problem should be fixed.

How do I update my server?
Just open the SteamCMD and login again, then retry the Step "Downloading the files" it will be checked which files need to be updated.
Server Creation Tool
To automate these steps to setup/upgrade a server, i created a tool, the group can be founde here:
http://gtm.steamproxy.vip/groups/ServerTool

The tool itself is hosted on Github, which can be found here:
https://github.com/Zeromix9/ServerTool

I hope, that will help you in the future!

If you like, you are also welcome to leave a small donation.
https://paypal.me/Zeromix
224 Comments
Zeromix  [author] 9 Jun @ 7:02am 
@ggMustaGD As far, as I know, you would still need to forward ports and use "sv_lan 0"
ggMustaGD 9 Jun @ 6:59am 
@Zeromix no i mean like you know how we can turn on steam networking when creating a lobby IN GAME to let people join without the host needing to forward any ports
Zeromix  [author] 9 Jun @ 6:14am 
@ggMustaGD What do you mean?
If your ports are forwarded, the server can be reached.
ggMustaGD 8 Jun @ 9:26am 
how do i host this on steam networking
Zeromix  [author] 21 Mar @ 4:41am 
@mrsweatyballsack63 I dunno, I don´t have any clue, neither I´ll help by connecting pirated versions.
mrsweatyballsack63 20 Mar @ 3:53pm 
How do i let no steam players join
kanashimih 16 Feb @ 10:46pm 
thanks!! :winter2019happysnowman:
Zeromix  [author] 9 Feb @ 7:04am 
@Not Skibidi SourceMOD...
Not Skibidi 9 Feb @ 3:13am 
how can i add mods in it ?
Zeromix  [author] 13 Jan @ 6:50am 
@El tropo de detective I dunno, I don´t work with these kind of stuff.