Do you have an old PC kicking around doing nothing? Now is the perfect time to turn that old PC into a private CS2 server for you and your friends to practice on. In this guide, I'll show you exactly how you can set up your CS2 dedicated server the easiest way possible, PLUS I'll show you how you can add custom mods and plugins to make it a unique server setup.
This guide assumes you're using Windows as your operating system.
To set up your new CS2 server, you will need to use a free tool called Easy SteamCMD. This is the free program that we will use that downloads everything required for your new Counter Strike server, and keeps it updated every time the server starts.
cs2server
.easysteamcmd-config.txt
with this CS2 version.STARTUP_COMMAND
with the settings you want to change such as the Server name, password etc.easysteamcmd.bat
and let it install. Make sure you install any popups it asks for.YourPublicIP:27015
. Any time you want to run your game server again, simply run easysteamcmd.bat.Now that your server is running, you will need to add a GSLT, so people can connect to your server.
App ID
enter 730
for CS2, then name the memo anything you want.easysteamcmd-config.txt
and replace YOURGSLT with your GSLTYour startup command should now look something like this:
STARTUP_COMMAND=game\bin\win64\cs2.exe -dedicated +ip 0.0.0.0 -port 27015 +map de_mirage -maxplayers 31 +sv_setsteamaccount 8BFB0F2A16079CDC5C5173421989727B +hostname "Hosted With Easy SteamCMD"
To connect to your CS2 server, you’ll need to know your IP address. Here’s how you can find it on Windows:
Win + R
to open the Run dialog.cmd
and press Enter to open the Command Prompt.ipconfig
and press Enter.IPv4 Address
. This is your local IP address. It usually looks something like 192.168.1.xxx
.If your friends are connecting over the internet, you’ll also need to set up port forwarding on your router:
192.168.1.1
or 192.168.0.1
).ipconfig
command).UDP
.Now, with your IP address and port forwarded, your friends can join your Counter Strike 2 server using the IP address in the format: YourPublicIP:27015
.
Here is a video you can send to your friends on how they can connect to your CS2 server.
Here is how you can edit some of the most common server settings for CS2.
To change the game mode, you need to edit the STARTUP_COMMAND by adding +game_mode 0 +game_type 0
to the end.
Here is a list of the game mode and type IDs so you can simply copy and paste it to your startup command.
Game Mode Name | Game Mode ID | Game Type ID |
---|---|---|
Casual | 0 | 0 |
Co-op Strike | 1 | 4 |
Competitive | 1 | 0 |
Custom | 0 | 3 |
Deathmatch | 2 | 1 |
Demolition | 1 | 1 |
Guardian | 0 | 4 |
Training Day | 4 | 0 |
Training | 0 | 2 |
Weapons Expert | 3 | 0 |
Wingman | 2 | 0 |
Here is an example of your startup command when the server is set to the Competitive game mode:
STARTUP_COMMAND=game\bin\win64\cs2.exe -dedicated +ip 0.0.0.0 -port 27015 +map de_mirage -maxplayers 31 +sv_setsteamaccount 8BFB0F2A16079CDC5C5173421989727B +hostname "Hosted With Easy SteamCMD"
+game_mode 1 +game_type 0
The next thing you might want to do is to change your game settings such as the time limit, starting weapons etc. Most guides will tell you to use server.cfg, but this is incorrect, as server.cfg is hardly used in CS2.
You can find these settings under /game/csgo/cfg/
folder and then select the game mode config file that matches your settings above (gamemode_casual.cfg for example). DO NOT edit this file, read below first.
You will then need to copy and paste this file but add _server to the end of it, otherwise your settings will be overwritten once the server updates. So your file should now be called gamemode_casual_server.cfg
This is where you make any gameplay related settings. You can find a full list of CS2 commands here.
To install plugins on Counter Strike 2 you will need to install Metamod and Counter Strike Sharp. We have a full guide that you can read here.
That's it! Your Counter-Strike 2 dedicated server should be up and running how you want it. If you get stuck at any time, come get some help from our friendly Discord community.
EVER WANTED TO START YOUR OWN GAME SERVER?