A complete walkthrough for running your own Garry's Mod dedicated server — install it with SteamCMD, claim a free Steam Game Server Login Token, pick a gamemode and map, open the port and add Workshop addons. Plus the one-click hosted route if you'd rather skip the setup.
Garry's Mod runs on Valve's Source engine, so its dedicated server is an SRCDS process — it stays online after you close the game. You can self-host it free on a spare PC, or use a managed host for a 24/7 server with a panel, FastDL and DDoS protection.
This guide covers the self-hosted SteamCMD route step by step, and points out where a host saves you the hassle. Once it's running, see our pick of the best Garry's Mod addons.
SRCDS runs fine on your own machine, and the steps below show how. A hosted alternative is our Garry's Mod server hosting in Frankfurt, with one-click installs, NVMe storage and always-on Anti-DDoS.
What you'll need
- A machine to run the server — a spare PC for testing, or a host for 24/7 uptime.
- SteamCMD, to download the free dedicated server (app 4020).
- A free GSLT token (Steam Game Server Login Token) for a public server.
- Open port: UDP 27015.
- A FastDL host if you run addons, so joins are fast.
Set up a Garry's Mod dedicated server, step by step
Step 1: Choose self-host or a managed host
The GMod dedicated server is free, but self-hosting needs a PC on 24/7, port-forwarding and a FastDL host for addons. A managed host gives you an always-online server, a panel and FastDL in minutes. Want zero hassle? Pick a host and skip to step 5.
Step 2: Install SteamCMD and the server
Garry's Mod's dedicated server is Steam app 4020 — a free, anonymous download; you don't need to own the game on the server machine. Install it with SteamCMD.
steamcmd +login anonymous +force_install_dir ./gmodserver +app_update 4020 validate +quitStep 3: Get a free GSLT token
A public server needs a Game Server Login Token to list in the browser. Generate one for app ID 4020 at the Steam Game Server Account Management page, then pass it on launch with
+sv_setsteamaccount.# get a token at: https://steamcommunity.com/dev/managegameservers # then launch with: +sv_setsteamaccount YOUR_GSLTStep 4: Launch with a gamemode and map
Start srcds with the gamemode and map you want — sandbox on gm_construct is the classic default. Set a hostname, player count and your GSLT.
./srcds_run -console -game garrysmod +gamemode sandbox +map gm_construct +maxplayers 24 +hostname "My ESAGAMES Server" +sv_setsteamaccount YOUR_GSLTStep 5: Open the port
Forward UDP 27015 (game + query) to the server so players can find and join it. On a managed host this is opened for you.
27015/udp game + query (default)Step 6: Add addons & FastDL (optional)
Install addons via a Steam Workshop collection (set your collection ID with
host_workshop_collection) and serve their files fast with a FastDL host so joining isn't a slow download. See our best GMod addons guide.
Keep your GMod server fast and clean
High CPU clock beats core count
Source's game tick is single-threaded, so GMod cares about GHz per core, not how many cores. A fast CPU keeps a Lua-heavy server smooth.
Set up FastDL
Without FastDL, players download addons over Source's slow default channel and often give up. It's the single biggest thing for join rate.
Install ULX before you open it
A public server needs admin tools. ULX (on ULib) gives you bans, kicks and group permissions — set it up before the first player joins.
Keep the Workshop collection tidy
Every subscribed addon is parsed on join. Trim unused ones so the server loads fast and stays stable.
Common problems & fixes
The server doesn't appear in the browser
Usually a missing or invalid GSLT, or UDP 27015 isn't open. Generate a valid token for app 4020 and make sure the port is forwarded.
Players time out or take forever to join
No FastDL — they're downloading addons over the slow default channel. Set up a FastDL host.
"Server is enforcing consistency" errors
A file mismatch between server and client addons. Keep your Workshop collection consistent and served via FastDL.
The server lags under a handful of players
Almost always an addon conflict or a slow CPU, not RAM. Trim addons and run on a high-clock CPU.
Garry's Mod is a trademark of Facepunch Studios, built on Valve's Source engine. ULX and all addon names are the property of their respective authors. ESAGAMES is an independent hosting provider, not affiliated with or endorsed by Facepunch or Valve. You must own a legitimate copy of the game to play, and download addons from their official sources.