How to Make a Garry's Mod Server

  • 8 min read
  • Updated 7 October 2026
  • ESAGAMES Team

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

  1. 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.

  2. 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 +quit
  3. Step 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_GSLT
  4. Step 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_GSLT
  5. Step 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)
  6. 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.

Frequently asked questions

How do I make a Garry's Mod server?

Install the free GMod dedicated server (Steam app 4020) with SteamCMD, create a Game Server Login Token for app 4020 and pass it with +sv_setsteamaccount, then launch srcds with a gamemode and map — for example sandbox on gm_construct. Open UDP 27015, and load addons through a Workshop collection with FastDL.

Do I need to own Garry's Mod to host a server?

No. The dedicated server (Steam app 4020) is a free, anonymous download, separate from the game. You only need to own GMod on the machines that play.

Do I need a GSLT for a Garry's Mod server?

For a public server that lists in the browser, yes — generate a free Game Server Login Token for app ID 4020 and pass it with +sv_setsteamaccount. A LAN-only server can run without one.

What port does a Garry's Mod server use?

UDP 27015 by default, for both game traffic and the query that lists it in the browser. Forward it on your router, or let a host handle it.

How much RAM does a GMod server need?

A light sandbox server is happy on 2-4 GB; DarkRP and heavy addon lists want more. CPU clock speed matters more than RAM for smooth ticks.

Why is joining my server so slow?

Almost always missing FastDL — players are pulling every addon over Source's slow default channel. Set up a FastDL host and joins get much faster.

How do I add Workshop addons?

Create a Steam Workshop collection and pass its ID with host_workshop_collection, then serve the files via FastDL. On a managed host this is a panel setting plus a file upload.

Fixes for when it goes wrong

Knowledge-base fixes that pair with this guide — the errors people hit after setup.

More guides

Skip the troubleshooting

Managed, protected hosting in Frankfurt — we handle the Linux, the network and the DDoS so you don't have to.