CS2
How to set up a Counter-Strike 2 server (GSLT, plugins and errors)
A dedicated Counter-Strike 2 server needs a Steam Game Server Login Token (GSLT) to be listed and played properly.
Get your GSLT
- Sign in at the Steam game server account page.
- Create a token for app ID 730 (CS2).
- Give the token to our team or paste it in your startup settings as sv_setsteamaccount.
Use one token per server.
Basic launch options
- -dedicated: run as a server
- +map de_dust2: starting map
- +game_type and +game_mode: choose competitive, casual and others
- -usercon and +sv_setsteamaccount your_token
Put your settings (hostname, rcon_password, tick settings) in the server.cfg file.
Plugins
Install Metamod:Source first, then CounterStrikeSharp, then plugins for things like ranks, skins and practice mode. Follow each project's install notes exactly.
Common errors
- Server not in the community list: check the GSLT is valid, the server is on the right port (27015 by default), and give it a few minutes.
- Plugins stop working after a CS2 update: Metamod or CounterStrikeSharp usually needs updating. Wait for the new build and restart.
- Players can't connect: check the password and that UDP and TCP 27015 are open.
- Wrong map or mode: set game_type and game_mode correctly and restart.