Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk6 min

How to Create a Counter-Strike 2 Server in 2026: Setup, Ports and Public Access

Set up a Counter-Strike 2 dedicated server with SteamCMD and app ID 730, open port 27015, add a Game Server Login Token for public listing, and troubleshoot connection failures.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To run a Counter-Strike 2 server, install the dedicated server files through SteamCMD using app ID 730, start the server in dedicated mode, and open the game port (27015 by default) on every firewall between the server and the players. A private server for friends on your home network needs only the first three steps. A server that appears in the public browser also needs a Steam Game Server Login Token (GSLT) for app 730, and it must be reachable from outside your local network.

What you need before you start

  • A computer or rented server running Windows or Linux, with enough free disk space for the CS2 dedicated server files and room for custom maps.
  • Administrator or root access, so you can install software and change firewall rules.
  • A Steam account that owns Counter-Strike 2. Steam’s Game Server Account Management page says the account must not be locked, community banned, or limited, must have a qualifying registered phone number, and must own the game before it can create a token.
  • A plan for who will keep the server running. Game servers need updates each time CS2 is patched, so someone has to run the update routine.

Step 1: Install SteamCMD

SteamCMD is Valve’s command-line tool for downloading and updating Steam game server files. Steam Support states that Steam game servers use SteamCMD, and Valve’s Developer Community documentation covers current command syntax. Install it from Valve’s SteamCMD download before continuing.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Step 2: Install the CS2 dedicated server files

The CS2 client and the CS2 dedicated server share app ID 730. A setup guide from ForgeWorld Gaming, updated 8 September 2026, documents an anonymous SteamCMD install using force_install_dir, login anonymous, and app_update 730 validate. Do not use app ID 740, which belongs to the older Counter-Strike: Global Offensive dedicated server.

A typical Linux command, with the install folder replaced by your own path, looks like this:

#1 Best Overall
Sale
Razer BlackShark V2 X Xbox Gaming Headset, 3.5mm Audio Jack, Black | 50mm Drivers, Cardioid Mic, Lightweight, Comfortable Noise Isolating Earcups, for Xbox Series X, Series S, PS5, PC, Switch
  • TRIFORCE TITANIUM 50 MM DRIVERS — Our cutting-edge proprietary design divides the driver into 3 parts for the individual tuning of highs, mids, and lows—producing brighter, clearer audio with richer highs and more powerful lows
  • HYPERCLEAR CARDIOID MIC — An improved pickup pattern ensures more voice and less noise as it tapers off towards the mic’s back and sides, with the sweet spot easily placed at the mouth because of the mic’s bendable design
  • ADVANCED PASSIVE NOISE CANCELLATION — Sturdy closed earcups fully cover the ears to prevent noise from leaking into the headset, with its cushions providing a closer seal for more sound isolation
  • LIGHTWEIGHT DESIGN WITH MEMORY FOAM EAR CUSHIONS — At just 240 g, the headset features thicker headband padding and memory foam ear cushions with leatherette to keep gaming in peak form during grueling tournaments and training sessions
  • WORKS WITH WINDOWS SONIC — Make the most of the headset’s powerful drivers by pairing it with lifelike surround sound that places audio with pinpoint accuracy, heightening in-game awareness and immersion
./steamcmd.sh +force_install_dir /home/cs2server +login anonymous +app_update 730 validate +quit

The first download is large, and the validate flag is appropriate for a fresh install. Use it deliberately later, as explained in the maintenance section below.

Step 3: Get a Game Server Login Token for public access

A private LAN server can run without a token. For a server that players can find through the public server list, create a GSLT for app 730 on Steam’s Game Server Account Management page, then give it to the server. Steam’s page states that unused tokens can expire, that password resets regenerate tokens, and that operators are responsible for their tokens. Each eligible account can create up to 1,000 game server accounts, according to the same page; this is an account limit, not a performance figure, and Steam did not date the statement in the material reviewed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep the token private. Do not paste it into forum posts, screenshots, public repositories, or shared configuration files. Steam explicitly says not to distribute game server login tokens to third parties, and it asks anyone who has shared a token to delete it.

Rank #2
Sale
Ozeino Wireless Gaming Headset for PS5, PC, Switch| Lossless Audio-40H Batt | Play & Charge, 2.4GHz USB & Type-C, Flip Mic, Works with PS4, Mac, laptop, mobile, Ideal for FPS, RPG
  • 【Amazing Stable Connection-Quick Access to Games】Real-time gaming audio with our 2.4GHz USB & Type-C ultra-low latency wireless connection. With less than 30ms delay, you can enjoy smoother operation and stay ahead of the competition, so you can enjoy an immersive lag-free wireless gaming experience.
  • 【Game Communication-Better Bass and Accuracy】The 50mm driver plus 2.4G lossless wireless transports you to the gaming world, letting you hear every critical step, reload, or vocal in Fortnite, Call of Duty, The Legend of Zelda and RPG, so you will never miss a step or shot during game playing. You will completely in awe with the range, precision, and audio quality your ears were experiencing.
  • 【Flexible and Convenient Design-Effortless in Game】Ideal intuitive button layout on the headphones for user. Multi-functional button controls let you instantly crank or lower volume and mute, quickly answer phone calls, cut songs, turn on lights, etc. Ease of use and customization, are all done with passion and priority for the user.
  • 【Less plug, More Play-Dual Input From 2.4GHz & Bluetooth】 Wireless gaming headset adopts high performance dual mode design. With a 2.4GHz USB dongle, which is super sturdy, lag<30ms, perfectly made for gamers. Bluetooth mode only work for phone, laptop and switch. And 3.5mm wired mode (Only support music and call).
  • 【Wide Compatibility with Gaming Devices】Setup the perfect entertainment system by plugging in 2.4G USB. The convenience of dual USB work seamlessly with your PS5,PS4, PC, Mac, Laptop, Switch and saves you from swapping cables.

Step 4: Start the server in dedicated mode

The ForgeWorld Gaming guide says to start the server with the -dedicated flag. On Linux, it recommends launching through the cs2.sh wrapper in the game directory. The map is chosen at startup, and the game mode is set with game_alias. The guide lists these modes: competitive, wingman, casual, deathmatch, and custom.

./cs2.sh -dedicated +game_alias competitive +map de_mirage

In the guide, game_alias sets both the mode and the game type. The map loads after the mode is selected, so if you change the mode, restart the server rather than expecting the old mode to change in place. Store persistent settings in server.cfg instead of retyping them on every launch. The guide’s setting for a server that accepts internet players is sv_lan 0.

To use the token, add it to the launch line or configuration as your chosen host’s documentation or Valve’s current developer documentation describes. Where the token setting is documented, use the exact name shown there and do not guess one.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Ozeino Gaming Headset for PC, Ps4, Ps5, Xbox Headset with 7.1 Surround Sound Gaming Headphones with Noise Canceling Mic, LED Light Over Ear Headphones for Switch, Xbox Series X/S, Laptop, Mobile White
  • Immersive 7.1 Surround Sound: This gaming headset delivering stereo surround sound for realistic audio. Whether you're in a high-speed FPS battle or losing yourself RPG adventures, this Ps5 headset provides crisp treble, punchy bass, and precise directional cues, giving you a competitive edge
  • Great Humanized Design: Comfortable and breathable permeability protein over-ear pads perfectly on your head, adjustable headband distributes pressure evenly, you’ll enjoy lasting comfort during hours of gaming and suitable for all gaming players of all ages
  • Sensitivity Noise-Cancelling Microphone: 360° omnidirectionally rotatable sensitive microphone, premium noise cancellation, sound localisation, your voice comes through loud and natural, ensuring your teammates catch every callout, even in chaotic battle scenes.
  • Universal Compatibility: This gaming headphone support for PC, Ps5, Ps4, Xbox one, Xbox Series X/S, Switch, Laptop, Mobile Phone and other devices with 3.5mm jack.Note 1: When you use headset on your PC, be sure to connect the "1-to-2 3.5mm audio jack splitter cable" (Red-Mic, Green-audio). (Please note you need an extra Microsoft Adapter when connect with an old version Xbox One controller)
  • Cool style gaming experience: Colorful RGB lights create a gorgeous gaming atmosphere, adding excitement to every match. Heightening immersion for FPS, MOBA, and action titles. These eye-catching lights give your setup a gamer-ready look while maintaining focus on performance. (*Note: The USB connector is for LED lighting only)

Step 5: Open the required ports

The guide identifies port 27015 as the default game and query port. It carries gameplay traffic, server pings, and RCON, the remote administration console. A Linux VPS guide from a hosting provider recommends allowing UDP 27015 for gameplay, and TCP 27015 only if you use RCON.

Port Protocol Purpose (per the cited guides) Open it when
27015 UDP Game traffic, pings, query Always, for a public or LAN server you want others to join
27015 TCP RCON remote administration Only if you use RCON
27020 UDP SourceTV Only if you enable SourceTV
27005 UDP Client traffic Only if your setup uses it
26900 UDP Outbound Steam traffic Usually handled by outgoing rules; check your firewall’s default outbound policy

Open only the ports your features need. Opening every port in the table does not make a server more reachable, and it widens the attack surface. Port numbers and launch flags can change between CS2 updates, so check them against the current guide before you publish a public server.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Choosing where to host: home computer or rented server

A server can run on a computer you control or on a rented VPS or game-server host. Steam Support warns that hosting locally for players outside your home network requires proper network, security-software, and game settings. A VPS gives you an always-on machine with a static address, but you then manage its operating system and security.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Logitech G432 Wired Gaming Headset - Black | DTS Headphone:X 2.0, 50 mm audio drivers, USB and 3.5 mm jack, Flip-to-Mute mic, PC compatible
  • Enjoy expansive cinematic sound. Big 50 mm audio drivers deliver an incredible sound experience
  • Hear Enemies From All Sides. DTS Headphone:X 2.0 surround sound(1) lets you hear enemies sneaking behind you, special ability cues, and immersive environments. It’s positional clarity that can make the difference between victory and defeat. Experience three-dimensional audio that goes beyond 7.1 channels to make you feel like you’re right in the middle of the action. (1) DTS Headphone:X 2.0 requires Logitech G HUB Software.
  • Be Heard Loud and Clear. The big 6 mm boom mic makes sure you’re heard by gaming partners and mutes when flipped up.
  • Use One Headset For Most Game Platforms. Your headphones work with your PC or Mac via USB DAC or 3.5 mm cable, mobile devices with 3.5 mm cable or with gaming consoles including PlayStationⓇ 5 and PlayStationⓇ 4 (USB wireless stereo sound only), Nintendo Switch (wireless stereo sound when docked)
  • Game for Hours in Comfort. Everything about these headphones is about comfort: The deluxe lightweight leatherette ear cups and headband are made to keep pressure off your ears. Ear cups rotate up to 90 degrees for convenience.
Factor Home computer Rented VPS or game host
Uptime Depends on your power supply, internet connection, and whether the machine sleeps Provider-managed; the provider’s uptime terms apply, and they are not stated here
Router and firewall control You configure port forwarding and the host firewall yourself You configure the host firewall; the provider may also run its own firewall that must allow the ports
Operating system maintenance Entirely yours Depends on the plan; many plans give root or SSH access, while managed plans may handle some maintenance
Capacity Set by your hardware Set by the plan; one VPS guide gives 2 GB as its stated published minimum, which is provider guidance, not a Valve requirement
Cost Electricity and hardware you already own Monthly fee; pricing and cancellation terms are not stated in the sources reviewed and vary by provider

No single CPU or memory specification fits every player count and plugin setup. Test your server with the number of players you expect, and size it from that result rather than from a generic checklist.

Maintenance: updating without breaking custom files

When CS2 receives an update, your server needs the matching files. Steam Support confirms SteamCMD is the standard tool for this. The guide separates an ordinary app update from a validation run. A validation pass can overwrite files you have customized, so use it only when you suspect corrupted game files, and back up your configuration first. For a routine update on Linux:

./steamcmd.sh +force_install_dir /home/cs2server +login anonymous +app_update 730 +quit

Before each update, copy server.cfg, custom maps, and any plugin files to a separate folder. After the update, restart the server and check the console for errors.

When the server starts but players cannot connect

A server that starts is not the same as a server that is reachable. Work through these checks in order.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Test locally first. Connect from the same machine or from another device on your LAN. If that fails, the problem is the server configuration or launch, not the internet path.
  • Check the router. For a home server, confirm that UDP 27015 forwards to the server’s local IP address. A forward to the wrong address is a common cause of failure.
  • Check the host firewall. Windows Defender Firewall, ufw, or similar software can block the game even when the router is correct.
  • Check the provider firewall. VPS providers often run a separate network firewall. It must allow the same ports.
  • Test from outside your network. A local connection does not prove that internet traffic can reach the server. Connect from a phone on mobile data or ask a friend on another network to join.
  • Check the token. If the server runs but never appears in the public list, confirm the GSLT is applied and has not expired, been regenerated after a password reset, or been removed.
  • Check the version. If players report a version mismatch, update the server files with SteamCMD and restart.

Valve’s GSLT ban guidance warns that using tokens in ways that create false inventories or player profiles through modifications can lead to bans. Do not run such features on a public server.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.