Dec 02, 2025
Ariffud M. & Valentinas C.
8min Read
Counter-Strike 2 (CS2) is a multiplayer tactical first-person shooter game developed by Valve. Released in September 2023, this game is set to replace its predecessor, Counter-Strike: Global Offensive (CS:GO).
If you’re looking to transition from CS:GO to CS2 or want an alternative to one of the official servers, you’ve come to the right place.
In this article, we’ll guide you on creating your own Counter-Strike 2 server, whether using an automated game server or a manual CS2 server setup. This tutorial is also suitable for both seasoned gamers and newcomers entering the server arena. Let’s get started.
Download ultimate SSH commands cheat sheet
Hostinger’s CS2 server hosting provides a seamless experience due to its optimized server environment. Here are the steps to do so:
While Counter-Strike 2 doesn’t require a lot of resources, using dedicated servers tailored for gaming is essential. Hostinger’s gaming hosting provides a seamless experience due to its optimized server environment.
This service offers four plans starting at $5.99/month. These plans provide multiple advantages, including:

To sign up for Hostinger’s CS2 VPS, follow these steps:
To proceed with your Counter-Strike 2 server setup, you’ll need a Game Server Login Token (GSLT) associated with your Steam account. This token is mandatory for your server to go live, ensuring compliance with Steam’s service agreement.
Before generating the token, ensure you meet the following requirements:
Once you meet the above requirements, follow these steps to generate your token:
Your new token will appear. Store this token securely, as you’ll need it later when configuring your Counter-Strike 2 server.
You can find all the App IDs on the Steam Database.
With your dedicated server and GSLT ready, it’s time to launch a new Counter-Strike 2 instance. Hostinger’s Game Panel simplifies this part of the setup. Here’s a quick guide on how to do it:


This step is similar for all games supported in Game Panel. For example, you can also create a dedicated server in Palworld by setting up a new instance.
Once your Counter-Strike 2 instance is up and running, it’s time to tweak your server settings to your preferences. The Game Panel is your go-to tool whether you want to set game modes or give your server a name. Here’s a quick roadmap:

Now that your server is set up, it’s time to host your first Counter-Strike 2 game. To do so, double-click the instance or click the Manage button and find the Connection Info section to see the server’s IP & port.

Invite your friends to play by clicking the Connection Link. You can also use the community server browser, employ the Steam client, or utilize the game’s console. Follow these steps for the console method:
connect [Server IP]:[Port]
Lastly, the Game Panel offers various management options, like shutting down the server, updating the dedicated server files, and managing users and roles. Ensure to familiarize yourself with these features for effective Counter-Strike 2 game management.

Manually setting up a Counter-Strike 2 server is an excellent option if you want more control and have technical expertise. You can do this on various Linux environments. In this example, we’ll use Hostinger’s VPS hosting on an Ubuntu 22.04 64-bit operating system.

Please note that commands might differ for other Linux distributions.
Log in to your hPanel and go to VPS → Manage. In the Overview panel, ensure your Hostinger VPS for CS2 server status is set to Running. If it’s not, click the Start button to initiate it. Also, you’ll find the details needed to access your server via SSH commands.

Before setting up your Counter-Strike 2 server, it’s crucial to update your package list. This gives you the latest software information, enhancing both performance and CS2 server security measures. Here’s how to proceed:
sudo apt update
sudo apt-get install lib32gcc1
To install any Counter-Strike 2 dedicated server files, you must download and install SteamCMD. It is the official command-line tool for the Steam client. Here are the steps to follow:
sudo useradd -m steam
su - steam
mkdir ~/Steam && cd ~/Steam
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
sudo apt-get install tmux screen -y;
./steamcmd.sh
If you see the Steam> prompt, you can start downloading the Counter-Strike 2 server files. Here are the instructions:
force_install_dir /full/path/to/cs2-ds/
login <username> <password>
app_update 730 validate
After successfully downloading and installing the dedicated server files, the next step is customizing your server settings. Navigate to the Counter-Strike 2 directory and edit the server.cfg file to configure the server according to your preferences.
cd /full/path/to/cs2-ds/
nano server.cfg
hostname "Your Server Name" mp_gametype "Your Game Type"
Now that you’ve completed the CS2 server customization, you can launch your Counter-Strike 2 server. To do this, navigate to the main server directory and start the server. Here’s how:
cd /full/path/to/cs2-ds/
./cs2 -dedicated +map de_dust2
If you want to customize your CS2 server’s game mode and type when starting, refer to the cheat sheet below:
Competitive
./cs2 -dedicated +map de_dust2 +game_mode 1 +game_type 0
Wingman
./cs2 -dedicated +map de_dust2 +game_mode 2 +game_type 0
Casual
./cs2 -dedicated +map de_dust2 +game_mode 0 +game_type 0
Deathmatch
./cs2 -dedicated +map de_dust2 +game_mode 2 +game_type 1
Custom
./cs2 -dedicated +map de_dust2 +game_mode 0 +game_type 3
Choosing the right custom CS2 server settings is crucial for delivering your ideal gaming experience.
After successfully starting your Counter-Strike 2 server, monitoring and managing its performance is crucial. The command-line interface provides an easy way to do this. Here are some common commands to keep in mind:
Restart Server
sm_restart
This command instantly reboots the server.
Change Map
changelevel de_newmap
This command switches the server to a new map specified by de_newmap.
Kick a Player
kick [username]
Use this command to remove a specific player from your game server.
Ban a Player
banid [SteamID]
This CS2 server player management command bans a player from joining your server.
List Connected Players
status
This command lists all players connected to the server and their information.
Log Server Activity
log on
This command enables the logging of server activities for review.
Set Max Players
maxplayers [number]
This command sets the maximum number of players that can connect to your server.
Once your Counter-Strike 2 server is up and running, the last step is connecting to it from your gaming machine. This is straightforward if you know the server IP and port. Here’s how to do it:
connect [Server IP]:[Port]
If you’re familiar with managing a Counter-Strike: Global Offensive (CS:GO) server, transitioning to a Counter-Strike 2 server should be relatively smooth. However, there are vital adjustments and considerations to be aware of.
Setting up and managing a Counter-Strike 2 server might seem daunting, but with this CS2 server installation guide, you’re well-equipped to tackle the task.
From initial setup to customization, we’ve outlined the essential steps to get you up and running. Aside from properly configuring your new Counter-Strike 2 server, it’s also crucial to carefully choose the right provider to host your VPS.
By following the steps and tips in this article, you can create a stable and customizable gaming environment and make any necessary adjustments easily. That way, you’re all set to enjoy your Counter-Strike 2 gaming experience fully.
How to Make a TeamSpeak Server
How to Set Up a Palworld Server
How to Host an Unturned Server
How to Create a Minecraft Server
How to Set Up a Linux VPN Server
How to Create a Rust Server
This section will answer the most common questions about how to create a Counter-Strike 2 server.
The system requirements for running a Counter-Strike 2 server depend on hardware. You’ll need at least a dual-core processor, 2 GB of RAM, and sufficient storage space – typically around 20 GB. These are the minimum hardware requirements – consider more robust hardware solutions for optimal performance.
While you can install the Counter-Strike 2 dedicated server files on various Linux servers, opting for a Hostinger CS2 VPS for CS2 server hosting comes with the added benefit of the Game Panel. This specialized control panel provides users with a GUI, making the installation and setup process easier and more efficient.
You can keep your CS2 server updated with the latest game patches by checking for game updates regularly. Manually update your dedicated server files or create an automated process to fetch and install the newest versions. Doing so ensures optimal gameplay and server performance.
Yes, you can install custom mods or play custom maps on your Counter-Strike 2 server. This can significantly enhance gameplay and the user experience. However, ensure that the CS2 mods and add-ons are compatible with the current server version to avoid potential issues. Always test new mods and maps before making them live.
Comments
December 07 2017
2GB of space? You mean like 30GB! I first tried with a 20GB VM and it gave me an error that it was full! The cs:go server files are 16GB by themselves, and that's without extras.
April 16 2020
Got the resolution: lib32stdc++6 is needed, install it with: apt-get install lib32stdc++6
May 21 2022
i have this error metamod/bin/linux64/server.so: wrong ELF class: ELFCLASS64
May 24 2022
Hi there! I'd suggest to try running this command in the first step; it seems like you might be missing lib32stdc++6:
apt-get install lib32gcc1 lib32stdc++6Let me know how it goes ?