ThisCalculator

Everyday

Host a CS2 Surf Server: Public & Plugin Ready

Updated · Standard formula, shown below

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

  1. Install SteamCMD – Download SteamCMD from Valve’s official site. On Windows, extract it to a folder like C:\steamcmd. On Linux, run sudo apt install steamcmd (Ubuntu/Debian) or sudo dnf install steamcmd (Fedora).
  2. Create a dedicated server directory – Make a folder for your CS2 server, e.g., C:\cs2surf or /home/user/cs2surf. This is where all server files will live.
  3. Download the CS2 dedicated server – Run SteamCMD with the following commands (replace anonymous with your Steam login if needed):
    force_install_dir /path/to/cs2surf
    login anonymous
    app_update 730 validate
    Wait for the download to finish (it’s about 10-15 GB).
  4. Create a server config file – Navigate to cs2surf/game/csgo/cfg/ and create a file named server.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.

  5. 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.
  6. Install surf maps – Download surf maps from popular community sites like GameBanana or the SurfHeaven collection. Place the .bsp files in cs2surf/game/csgo/maps/. Also, download their corresponding .nav files if available.
  7. Add map cycle – Create a mapcycle.txt in cs2surf/game/csgo/ listing your maps, one per line (without the .bsp extension). Example:
    surf_beginner
    surf_utopia
    surf_borderlands
  8. 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 a addons/ folder with the plugin and configs.
  9. 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 into cs2surf/game/csgo/addons/).
  10. 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.
  11. Start the server – Run the server with the following command from the cs2surf directory:
    ./game/bin/linuxsteamrt64/cs2 -dedicated -game csgo -console -usercon +map surf_beginner +maxplayers 32
    On Windows, use game\bin\win64\cs2.exe with the same arguments. Replace the map with one you’ve installed.
  12. Verify it’s public – Check that the server appears in the community server browser (or by using the status command in console). Have a friend try to connect via connect your_ip:27015.
  13. 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 root cs2surf folder.
  • Not having Sourcemod/Metamod installed before the plugin – SurfTimer will not load without them. Install in the correct order.
  • Setting sv_lan 0 but 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 -dedicated or -game csgo will 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 1 to 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.cfg and plugin configs so you can quickly restore after an update.

Troubleshooting

  • Server doesn’t appear in the browser – Check that sv_lan 0 is set, ports are forwarded, and your firewall allows inbound UDP on 27015. Also, try using the status command 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:27015 from 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 list in 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 -debug to 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

  1. 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.
  2. 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.
  3. What is the best surf plugin for CS2? – SurfTimer is the most widely used and actively maintained. It offers times, ranks, and map management.
  4. 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.
  5. 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.
  6. 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.