Source Dedicated Server
The Source Dedicated Server or SRCDS is a tool that runs the server component of a Source game without the client component. In other words, it simulates the game without drawing it. SRCDS is chiefly used by server providers who want to serve up as many games from the same computer as they can.
This page, however, is aimed at mod developers who want to run SRCDS on their home computer. Doing this is a must if you are creating a multiplayer mod as the behaviour of dedicated servers differs from that of listenservers (those started from the main menu) in some areas. Crashes that only happen on a dedicated server are entirely possible!
CPU - To run a Source dedicated server you need at least a 1.0Ghz Intel CPU or equivalent. This will run a basic server with 20 slots at a good level of performance.
Memory: To run a normal server you will need at least 512MB RAM, you might need to restart the server every once in a while to clean up the memory. 1GB is enough to run over 60 player slots total.
Bandwidth: Bandwidth is used a lot—more specifically, upload bandwidth. Here is a list of how fast your connection must be to run a certain number of players at lowest settings. (When talking about bandwidth for servers we always talk about upload, not download.) Note: these numbers are theoretical, your results may vary slightly!
No matter which type of server you are using, your computer must be able to receive unsolicited incoming connections. This is exactly what routers and software firewalls exist to prevent, so if you are using either you will have to reconfigure. Refer to the manufacturer instructions for how to do this.
The ports SRCDS officially requires are:
- 27015 TCP/UDP (game transmission, pings and RCON) - Can be changed using -port on startup
- 27020 UDP (SourceTV transmission) - Can be changed using +tv_port on startup
- 27005 UDP (Client Port) - Can be changed using -clientport on startup
- 26900 UDP (Steam Port, outgoing) - Can be changed using -sport on startup
SRCDS has also been spotted opening connections on 27005 and 51840 UDP, but these may be outbound only.
Udp.Port == 27015) and watch for requests coming in from random people around the world. Note that the heartbeats you will see being sent to the two master servers do not mean that the connection is open.
See SteamCMD for installation instructions.
- Install SteamCMD
- Run the update tool with
+login anonymous +app_update [appid]. The appid you should use is listed in a note above. Optionally, add
+force_install_dir <path>to download to a custom location; it must appear before the
- To start the server, run
orangebox\srcds.exe -console -game <vproject>.
- You will need to extract sounds, materials and models; do the "source X" GCFs before the "source 2007 X" ones.
- You should end up with
<server_path>\hl2from your GCFs and
<server_path>\orangeboxfrom the update tool.
- You may want to run the update tool again after extracting to make sure that everything is correct.
Configuring and running the server
Navigate to the folder you just installed your server in. There should be a bunch of files and folders, including a directory with the name of the game you have just installed, e.g.
hl2mp for HL2: Deathmatch. The configuration files are located in the
Edit the main configuration file:
<game>/cfg/server.cfg. Change the
hostname line (this is the name people will see in the server browser) and other options to your liking.
Open a terminal where you have installed the server and start the server:
./srcds_run (or ./srcds.exe on Windows) -game <game> +map <map> +maxplayers X -autoupdate
./srcds.exe -game <game> +map <map> +maxplayers X -autoupdate
./srcds_run -game hl2mp +map dm_lockdown +maxplayers 8 -autoupdate
- Half-Life Dedicated Server
- Server plugins
- Open Source Server Plugin List
- Command Line Options#Source Games