Home

Counter-Strike 2

Config Generator

Fill in the fields below to generate a ready-to-use server.cfg for your Counter-Strike 2 dedicated server. For the full setup walkthrough -- getting the server files, required ports and starting it up -- see the Counter-Strike 2 setup guide. Not sure your hardware is up to it? Check compatibility first.

Executed automatically on startup from game/csgo/cfg/server.cfg. The player-slot count is a normal convar here, unlike some older Source games.

Source: Valve's own official Counter-Strike 2 Dedicated Servers documentation.

server.cfg preview

hostname "My CS2 Server"
sv_password ""
rcon_password ""
mp_maxplayers 10
sv_lan 0

Server running but nobody can join?

A wrong or missing setting in this file isn't the only reason players can't connect -- see the connection troubleshooting guide for port forwarding, firewall and CGNAT issues.