The Garry's Mod dedicated server uses the Source engine server program (srcds), with app ID 4020 in SteamCMD. This guide is based on the official Facepunch wiki and a detailed server-hosting write-up, and covers the GSLT token, the Workshop collection and typical problems. Checked 2026-11-17.
The game and its addons change, so check the current documentation before changing anything. Our team sets the server up; you use the console, the file manager (browser and SFTP) and backups.
1. Requirements and ports
- According to the hosting write-up the server runs on Windows and Linux; modest guidance is a CPU of at least 2 GHz, 4 GB of memory (more with many addons) and 5-10 GB of storage.
- The default port is 27015, TCP and UDP; players join from the console with connect SERVER_IP:27015.
- According to the Facepunch wiki a GSLT is mandatory: without one the server is penalised in ranking. Create the token on the Steam game server management page; the write-up says to use the Garry's Mod game ID (4000) while owning the game.
- On 64-bit Linux a linux32 SteamCMD error (No such file or directory) usually means missing 32-bit libraries.
2. First start and configuration
- Install the server with SteamCMD: login anonymous, then app_update 4020 validate.
- On Linux start with ./srcds_run -game garrysmod +maxplayers 32 +map gm_construct; on Windows srcds.exe +maxplayers 20 -console +gamemode sandbox +map gm_construct.
- The game mode is set with +gamemode NAME (the name must match the gamemode folder); it can also be changed later with the gamemode ConVar and a map change.
- Pass the GSLT with +sv_setsteamaccount TOKEN.
./srcds_run -game garrysmod +maxplayers 32 +gamemode sandbox +map gm_construct +sv_setsteamaccount GSLT_TOKEN +host_workshop_collection GYUJTEMENY_ID3. Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| The server sits at the bottom of the list | Nincs GSLT | Generate a token and pass it with +sv_setsteamaccount |
| Workshop addons do not download | The collection is private | Make the collection public or unlisted, otherwise srcds cannot access it |
| Players cannot join the map | An outdated Workshop map because host_workshop_autoupdate is 0 | Keep auto-update on or update manually |
| The update fails | It fails because of force_install_dir | Omit it, use a different folder or put it before login |
| Lag after editing Lua files | Az autorefresh | It can be disabled with the -disableluarefresh parameter |
| CS:S content does not mount | Missing cstrike folder or mount.cfg | Copy the cstrike folder into the server files and set mount.cfg; test with changelevel cs_italy |
| Does not leave a beta branch | Just removing -beta is not enough | Use -beta public |
4. Saves and updates
- Server state is the files in the garrysmod folder (cfg, addons, data); Workshop content downloads on startup and is checked for freshness on every restart.
- Update with the SteamCMD app_update 4020 command; make a client-area backup first.
- host_workshop_autoupdate 0 disables updates on startup: it can guard against harmful addon changes, but an outdated map can stop players from joining.
5. Workshop collection and content
- Create a public or unlisted Workshop collection and add +host_workshop_collection COLLECTION_ID to the launch; nested collections download too.
- If the current map .bsp name matches a collection item, clients download it automatically.
- Sandbox is the default game mode; others can come from the Workshop (for example terrortown in the LinuxGSM example).
- The addon author is responsible for the quality and compatibility of addons.
6. Choosing a plan
Load comes from player count (+maxplayers), the game mode and above all the number of addons. The write-up mentions 4 GB of memory as a base, more with many addons; these are no guarantees. A few players and few addons fit Start; a large server with many addons is better on Pro or Max. If you see lag, review the addon list first.



