Home / Guides

How to set up a private CS2 server for your team's scrims and practice

Matchmaking is fine for solo queue, but a team needs a server of its own: a password, your map, and grenade practice without strangers. Here's what a private CS2 server needs, and the commands to run one.

What a CS2 server needs

  • Valve's dedicated server. It's free, downloaded with SteamCMD, and runs on Windows or Linux.
  • A Game Server Login Token (GSLT). Valve requires one before other players can join. Make it on Steam's game server account page with 730 as the app ID, and give each server its own.
  • Port 27015 open, if you host it at home.
  • Not much hardware. A 5v5 with a few spectators is light. See how much RAM and vCPU a CS2 server needs.

Lock it with a password

Add this line to server.cfg in the server's cfg folder:

sv_password "yourpassword"

Teammates join from the console. Turn it on in Settings, Game, "Enable Developer Console", then press ~ and type:

password yourpassword; connect 203.0.113.10:27015

Swap in your server's address. On a server without a dedicated port, add its port after a colon. Without the password, the server turns them away.

Pick the mode and map

  • game_alias competitive for 5v5. It's the default.
  • game_alias wingman for 2v2.
  • changelevel de_mirage to switch maps. A new mode takes effect after a map change.

A practice config for nades and lineups

Save these lines as prac.cfg in the cfg folder, then run exec prac whenever you want practice mode.

CommandWhat it does
sv_cheats 1Needed by most practice commands
mp_warmup_endEnds warmup
mp_roundtime_defuse 6060-minute rounds
mp_freezetime 0No wait at round start
mp_buy_anywhere 1Buy from anywhere on the map
mp_buytime 9999Buy at any time
mp_startmoney 60000 and mp_maxmoney 60000Money you won't run out of
sv_infinite_ammo 1Infinite ammo and grenades
ammo_grenade_limit_total 5Carry every grenade at once
sv_grenade_trajectory_prac_pipreview 1Shows where a grenade will land before you throw
sv_showimpacts 1Shows where your bullets hit
bot_kickRemoves bots. bot_add_t and bot_add_ct add one back
mp_restartgame 1Restarts the round with the new settings

sv_rethrow_last_grenade throws your last grenade again, so you can watch a lineup from where it lands.

A match plugin for scrims

For real scrims, most teams use MatchZy, a free plugin built on CounterStrikeSharp (which runs on Metamod:Source). It adds:

  • A knife round for sides.
  • Ready-up, so the match starts only when all 10 type .ready.
  • Pauses, including tech pauses.
  • Demo recording of every match, for review afterward (it needs tv_enable 1).
  • Round restore if someone crashes, coach slots, and a practice mode that sets up the commands above for you.

Big CS2 updates can stop Metamod and its plugins from loading until they're updated, so check the server after a patch, before scrim night.

Workshop maps

  • One map: host_workshop_map 1234567890, using the number at the end of the map's Workshop address.
  • Your whole map pool: host_workshop_collection with a collection's number, then ds_workshop_changelevel and the map name to switch between them.

Loading a collection can need a Steam Web API key from your Steam account. If yours does, we'll ask you for it.

Don't pay extra for 128 tick

CS2 uses sub-tick: the server records exactly when you clicked or moved, between ticks, instead of rounding to the next one. Servers run at 64 tick, and the 128-tick setting from CS:GO is gone. Tick rate isn't something to buy. A fast CPU core and low ping matter more.

Your own PC or a rented server?

You can run it at home, but that PC has to stay on through the scrim, port 27015 has to be open, and your upload speed carries everyone's game. A rented server is always on, and ours run in the location closest to your players.

We set it up for you

Tell us how your team plays, and we'll set up your CS2 server with the token, password, practice config, MatchZy and your map pool. Compare the CS2 plans, or try one free for 1 day, no payment card needed.

Stuck? Ask us on Discord.

Keep reading

All guides