Host a CS2 Surf Server: Public & Plugin Ready
This guide walks you through setting up a dedicated Counter-Strike 2 surf server that is publicly accessible and ready for plugins like SurfTimer or !surrender. You’ll need a Windows or Linux machine (or VPS) with at least 4 GB of RAM, a stable internet connection, and a basic familiarity with command lines. By the end, you’ll have a fully functional server that players can join via your IP and that can run custom surf maps and ranking plugins.
What You’ll Need
- A computer or VPS running Windows Server 2019/2022, Ubuntu 20.04/22.04, or Debian 11/12
- At least 4 GB of RAM (8 GB recommended for larger maps)
- Steam account (free) to download the server files
- Port forwarding access to your router (if hosting at home) or a public IP from your VPS provider
- Basic text editor (Notepad++, VS Code, or nano)
- Optional: a domain name (if you want a clean connect link)
Step-by-Step
- Install SteamCMD – Download SteamCMD from Valve’s official site. On Windows, extract it to a folder like
C:\steamcmd. On Linux, runsudo apt install steamcmd(Ubuntu/Debian) orsudo dnf install steamcmd(Fedora). - Create a dedicated server directory – Make a folder for your CS2 server, e.g.,
C:\cs2surfor/home/user/cs2surf. This is where all server files will live. - Download the CS2 dedicated server – Run SteamCMD with the following commands (replace
anonymouswith your Steam login if needed):force_install_dir /path/to/cs2surflogin anonymousapp_update 730 validate
Wait for the download to finish (it’s about 10-15 GB). - Create a server config file – Navigate to
cs2surf/game/csgo/cfg/and create a file namedserver.cfg. Add basic settings:hostname "My Surf Server" mp_autoteambalance 0 mp_limitteams 0 mp_maxrounds 60 mp_timelimit 60 sv_cheats 0 sv_pausable 0 sv_lan 0 sv_region 255 rcon_password "your_rcon_password" sv_password ""
Save the file.
- Set up port forwarding (if hosting at home) – In your router’s admin panel, forward UDP ports 27015 (game), 27020 (SourceTV), and 27016 (steam query) to your computer’s local IP. If on a VPS, ensure your firewall allows these ports.
- Install surf maps – Download surf maps from popular community sites like GameBanana or the SurfHeaven collection. Place the
.bspfiles incs2surf/game/csgo/maps/. Also, download their corresponding.navfiles if available. - Add map cycle – Create a
mapcycle.txtincs2surf/game/csgo/listing your maps, one per line (without the .bsp extension). Example:surf_beginner surf_utopia surf_borderlands
- Install a surf plugin (e.g., SurfTimer) – SurfTimer is the most popular plugin for CS2 surf. Download the latest release from its GitHub page. Extract the contents into
cs2surf/game/csgo/. It usually includes aaddons/folder with the plugin and configs. - Install Metamod and Sourcemod (if not included) – SurfTimer requires Sourcemod and Metamod. Download both from their official sites. Extract Metamod into
cs2surf/game/csgo/and Sourcemod into the same directory. Follow their installation instructions for CS2 (they typically go intocs2surf/game/csgo/addons/). - Configure the plugin – After installing SurfTimer, edit its config file (usually
addons/sourcemod/configs/surftimer.cfg). Set your database settings if you want to store player records. For a simple start, leave the default SQLite settings. - Start the server – Run the server with the following command from the
cs2surfdirectory:./game/bin/linuxsteamrt64/cs2 -dedicated -game csgo -console -usercon +map surf_beginner +maxplayers 32
On Windows, usegame\bin\win64\cs2.exewith the same arguments. Replace the map with one you’ve installed. - Verify it’s public – Check that the server appears in the community server browser (or by using the
statuscommand in console). Have a friend try to connect viaconnect your_ip:27015. - Automate server startup (optional) – Create a script or service to start the server automatically on boot. On Linux, use systemd; on Windows, use Task Scheduler.
Common Mistakes
- Forgetting to forward UDP ports – TCP is not enough; CS2 uses UDP for game traffic. Double-check your router settings.
- Using the wrong directory for maps – CS2 looks for maps in
game/csgo/maps, not the rootcs2surffolder. - Not having Sourcemod/Metamod installed before the plugin – SurfTimer will not load without them. Install in the correct order.
- Setting
sv_lan 0but still not public – Also ensure your server has a public IP and no firewall blocking the ports. - Using outdated plugin versions – CS2 updates frequently; always use the latest compatible versions of Sourcemod, Metamod, and SurfTimer.
- Ignoring the server’s launch options – Missing
-dedicatedor-game csgowill cause the server to run as a client or fail to start.
Tips
- Use a VPS with a good CPU – Surf servers are CPU-intensive, especially with many players. A 4-core VPS is a good starting point.
- Set up a database – For persistent player records, use MySQL/MariaDB instead of SQLite. It’s more reliable and allows web integration.
- Enable SourceTV – Add
+tv_enable 1to your launch options to allow spectators and demo recording. - Use a map rotation – Instead of a static mapcycle, use a plugin like MapChooser to let players vote for the next map.
- Regularly update – Check for CS2 server updates and plugin updates weekly, as the game is actively developed.
- Backup your configs – Keep a copy of your
server.cfgand plugin configs so you can quickly restore after an update.
Troubleshooting
- Server doesn’t appear in the browser – Check that
sv_lan 0is set, ports are forwarded, and your firewall allows inbound UDP on 27015. Also, try using thestatuscommand in the server console to see if it’s listening. - Players can’t connect – Verify that your public IP is correct (use sites like whatismyip.com). If behind a router, ensure the port forwarding is to the correct local IP. Test with
connect your_ip:27015from a different network. - Plugin doesn’t load – Check the server console for errors. Ensure Sourcemod and Metamod are installed in the correct order and that the plugin files are in the right directories. Run
sm plugins listin console to see if it’s loaded. - Map doesn’t load – Make sure the .bsp file is in the maps folder and that you typed the map name correctly in the launch command. Also, check that the map is not corrupted (re-download if necessary).
- Server crashes on start – Look at the console output for error messages. Common issues include missing files, incorrect launch parameters, or insufficient RAM. Try running with
-debugto get more info. - High ping for players – If your server is far from players, consider using a VPS in a central location. Also, ensure your upload bandwidth is sufficient (at least 10 Mbps for 32 players).
Frequently Asked Questions
- How much does it cost to host a CS2 surf server? – If you host at home, it’s free (just electricity). A VPS costs around $10-20 per month for a decent configuration.
- Can I run a surf server on a free hosting service? – No, CS2 servers require full control and high resources, so you need your own machine or VPS.
- What is the best surf plugin for CS2? – SurfTimer is the most widely used and actively maintained. It offers times, ranks, and map management.
- Do I need to own CS2 to host a server? – No, you only need a free Steam account to download the server files via SteamCMD.
- How many players can a surf server support? – Typically 32 players is the max, but for surf maps, 16-24 is more common to avoid overcrowding.
- Is it possible to make money from a surf server? – Some servers use donations or in-game perks, but this is against Valve’s policy for community servers. It’s best to run it as a hobby.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.