Join
Guide · CS2 · CS:Source · CS 1.6 · Linux and Windows

Create a Counter-Strike server

Want to create your own Counter-Strike server to play with friends or start a community? This page compares Counter-Strike 2, Counter-Strike: Source and Counter-Strike 1.6, explains where to host the server, then gives the install commands for each game with SteamCMD, Valve's official tool.

Updated on 25/10/2026 · by Exception Multiservices

  1. Which Counter-Strike should you choose?
  2. Where to host the server?
  3. The steps, for every game
  4. Create a Counter-Strike 2 server
  5. Create a Counter-Strike: Source server
  6. Create a Counter-Strike 1.6 server
  7. Ports and firewall
  8. After installation: keeping the server alive
  9. Frequently asked questions

Which Counter-Strike should you choose?

All three games are set up the same way, but they don't need the same machine or the same tools. The dedicated server downloads without buying the game; it's the players who need the game in their Steam library.

Counter-Strike 2Counter-Strike: SourceCounter-Strike 1.6
For whomThe current game, the most players, competitiveFun, loyal communities, endless maps and modesFor the nostalgic, very lightweight
SteamCMD app73023233090
Disk spaceabout 65 GBa few GBunder 1 GB
Recommended machine4 fast cores, 8 GB of memory2 cores, 4 GB of memory1 core, 1 GB of memory
Steam token (GSLT)required to be listed and joinableoptionalno
Plugins and administrationMetamod:Source 2 + CounterStrikeSharpMetamod:Source + SourceModAMX Mod X

SourceMod does not work on CS2: CS2 plugins are written for CounterStrikeSharp. Thousands of CS:S and CS 1.6 plugins are available on the AlliedModders forum.

Where to host the server?

At home

Perfect for an evening with friends or a LAN. You need to forward the ports on your router and leave the PC on; your upload speed limits the number of players.

Game server host

The server is ready in minutes with a control panel, without touching Linux. Less freedom: plugins, files and website depend on what the host allows.

VPS or dedicated server

A machine rented in a data centre, entirely yours: fixed IP address, on 24/7, any plugin and a website possible. The best choice for a community, with a bit of learning.

The steps, for every game

  1. Prepare the machine: Linux (Ubuntu LTS recommended) or Windows, with a dedicated account for the server, never root.
  2. Install SteamCMD, Valve's command-line tool that downloads and updates dedicated servers.
  3. Download the server with the game's app number, using an anonymous login.
  4. Configure the server name, RCON password and rules in server.cfg.
  5. Open the ports (27015 UDP) and start the server.
  6. Add administration (SourceMod, CounterStrikeSharp or AMX Mod X), then automatic start and updates.

On Ubuntu, install SteamCMD like this (the 32-bit libraries are for CS:S and CS 1.6):

sudo dpkg --add-architecture i386
sudo add-apt-repository -y multiverse
sudo apt update
sudo apt install -y lib32gcc-s1 lib32stdc++6 steamcmd
sudo useradd -m -s /bin/bash cs
sudo -iu cs

Create a Counter-Strike 2 server

The CS2 server uses the same app as the game (730) and weighs about 60 GB. On Linux you need a recent system (Ubuntu 20.04 or newer).

/usr/games/steamcmd +force_install_dir /home/cs/cs2 +login anonymous +app_update 730 validate +quit

Then create a game server login token (GSLT) on Steam's game server management page, with app number 730: without it, players cannot join a public server. The Steam account must have a phone number and must not be limited.

cd /home/cs/cs2/game
./cs2.sh -dedicated -port 27015 +game_alias competitive +map de_dust2 +sv_setsteamaccount YOUR_TOKEN

game_alias sets the mode: casual, competitive or deathmatch. The settings file is game/csgo/cfg/server.cfg.

Create a Counter-Strike: Source server

The easiest of the three to run, and the one for "fun" communities: parachute, knives, custom maps, anti-pro balancing… It fits on a small VPS.

/usr/games/steamcmd +force_install_dir /home/cs/css +login anonymous +app_update 232330 validate +quit
cd /home/cs/css
./srcds_run -game cstrike -console -port 27015 +maxplayers 24 +map de_dust2

The rest (server.cfg, ports, SourceMod, systemd service, updates, security) is detailed command by command in our dedicated guide:

Full guide: create a Counter-Strike: Source server

Create a Counter-Strike 1.6 server

Counter-Strike 1.6 runs on the Half-Life dedicated server (HLDS, app 90). If the download stops before the end, just run the same command again.

/usr/games/steamcmd +force_install_dir /home/cs/cs16 +login anonymous +app_update 90 validate +quit
cd /home/cs/cs16
./hlds_run -game cstrike -port 27015 +maxplayers 20 +map de_dust2

Settings go in cstrike/server.cfg; administration and plugins use AMX Mod X (with Metamod).

Ports and firewall

All three games use port 27015 UDP. With the ufw firewall, allow SSH before enabling the firewall:

sudo ufw allow OpenSSH
sudo ufw allow 27015/udp
sudo ufw enable

Add 27020/udp for spectator TV (SourceTV or CSTV). At home, forward the same port on your router to the server PC. In game, the console and connect IP_ADDRESS:27015 let you test.

After installation: keeping the server alive

Installing the server takes an hour. Keeping it alive takes months: a website for players, rankings, admins with permissions, tracked sanctions, anti-cheat, votes, backups, updates, machine security…

For Counter-Strike: Source, CSS FZ Control takes care of all of this on your own VPS:

  • Automatic installation: game server, SourceMod, website, admin area, firewall, backups.
  • All settings in one place, with search: maps, sounds, votes, grenades, on-screen messages, admins and sanctions.
  • Anti-Cador for balanced matches, the CSS FZ network against cheaters, in French, English or German.

Frequently asked questions

How do you create a Counter-Strike server?

Choose the game (CS2, CS:Source or CS 1.6) and a machine that is always on (ideally a Linux VPS), install SteamCMD, download the dedicated server with the game's app number, configure server.cfg, open port 27015 UDP and start the server.

Do you need to buy the game to create a Counter-Strike server?

No. Valve's dedicated servers download with SteamCMD using an anonymous login. Players, however, need the game in their Steam library.

What is a GSLT token?

A Game Server Login Token, created on Steam's game server management page. It is required for a public Counter-Strike 2 server to be joinable (app 730); it is optional for Counter-Strike: Source.

What machine do you need for a Counter-Strike server?

For CS2, about 65 GB of disk space, 4 fast cores and 8 GB of memory. For CS:Source, 2 cores and 4 GB are enough for 24 to 32 players. CS 1.6 runs on almost any machine.

Can you create a Counter-Strike server at home?

Yes, to play with friends or on a LAN: forward port 27015 UDP on your router and leave the PC on. For a public server, a VPS is more reliable.

Can you install SourceMod on a CS2 server?

No. SourceMod works on Counter-Strike: Source and other Source 1 games. On CS2, plugins run through Metamod:Source 2 and CounterStrikeSharp. On CS 1.6, AMX Mod X is used.