---
title: "Gmod Dedicated Server: SteamCMD, GSLT and Workshop"
url: https://1up-servers.com/en/blog/gmod-dedicated-server/
lastmod: 2026-10-26
---

# Gmod Dedicated Server: Free Self-Hosting or 24/7 Hosting

Run a Garry's Mod server for free with SteamCMD or host it 24/7: the srcds launch line, GSLT, server.cfg, ports, Workshop collections, gamemodes and the 1up panel.

By [Baurtock](https://1up-servers.com/en/blog/author/baurtock/)
Updated Oct 26, 2026 · 9 min read

Read in[es](https://1up-servers.com/es/blog/servidor-dedicado-gmod/)[en](https://1up-servers.com/en/blog/gmod-dedicated-server/)

**Your game server, free**Ready in 60 seconds, no card.[Create free server](https://1up-servers.com/en/signup/)

A Gmod dedicated server is free if you run it yourself: Valve's SteamCMD downloads it with an anonymous login, and your own PC or VPS does the rest. This guide covers that route step by step, then what our [Garry's Mod server hosting](https://1up-servers.com/en/garrys-mod/) adds when you would rather not keep a machine on.

- **Free route:** SteamCMD, app **4020**, anonymous login. The server runs on Windows and Linux; macOS builds are no longer shipped.
- **Launch line:** `+gamemode`, `+map`, `+maxplayers`, `+host_workshop_collection` and `+sv_setsteamaccount` (your GSLT) cover a typical server.
- **GSLT:** Facepunch calls it mandatory. Without one, your server sinks in the server list ranking.
- **Gamemodes:** Sandbox and Trouble in Terrorist Town ship with the game. DarkRP and the rest come from the Workshop.
- **On 1up:** Garry's Mod runs on Free with the hourglass at ×1.5, because its 20 GB install is bigger than Free's disk. Casual (€3/month, 2 GB of RAM, 6 slots) keeps it online 24/7.

## 1. Free self-hosting or a hosted server?

Garry's Mod gives you three ways to play together:

- **Host from the game:** a listen server started from the menu. Free, but the session ends when the host quits.
- **Self-host a dedicated server:** free software, full control, but your PC or a rented VPS stays on, and you handle updates, ports and crashes.
- **A hosted server:** the server runs in a data centre and you manage it from a web panel.

If you searched for "free gmod hosting", the honest answer is the second option. The server software costs nothing; the machine, the electricity and your time are the price. The rest of this section and the next three cover that route, and they apply to any Linux or Windows box.

## 2. Install the server with SteamCMD

The [Facepunch wiki](https://wiki.facepunch.com/gmod/Downloading_a_Dedicated_Server) documents the install. Download SteamCMD from Valve, log in anonymously and update app 4020. On Windows, in one line:

```
steamcmd.exe +login anonymous +force_install_dir c:\my_garrysmod_server\ +app_update 4020 validate +quit
```

On Linux, the same page gives:

```
steamcmd +login anonymous +force_install_dir ../gmodds +app_update 4020 validate +quit
```

Two notes from the wiki worth knowing before you start:

- `force_install_dir` "is known to cause problems when updating". If an update fails, reinstall into another folder or type `force_install_dir` before `login`.
- On 64-bit Linux, SteamCMD needs 32-bit libraries. The [Linux hosting page](https://wiki.facepunch.com/gmod/Linux_Dedicated_Server_Hosting) shows the error and the packages.

Run the same SteamCMD line again to update. Since the [September 2026 Update](https://store.steampowered.com/news/app/4000/view/1844115010489360), Windows dedicated servers also ship 64-bit binaries, which lowers the risk of running out of 32-bit address space on servers heavy with addons.

## 3. Start it: the srcds launch line

On Windows you run `srcds.exe`; on Linux, `srcds_run` from the install folder. The wiki's Windows example:

```
srcds.exe +maxplayers 20 -console +gamemode sandbox +map gm_construct +sv_setsteamaccount <your token>
```

What each piece does:

| Parameter | What it does |
| --- | --- |
| `+gamemode sandbox` | The gamemode folder name, from `garrysmod/gamemodes/` or from an addon |
| `+map gm_construct` | The map file name without `.bsp` |
| `+maxplayers 20` | Player slots |
| `+host_workshop_collection <id>` | Downloads and mounts a Workshop collection at every start |
| `+sv_setsteamaccount <token>` | Your Game Server Login Token (GSLT) |
| `-port <n>` | The port the server uses, 27015 by default ([Valve Developer Community](https://developer.valvesoftware.com/wiki/Command_line_options)) |

**Get a GSLT.** The wiki's [Steam Game Server Accounts](https://wiki.facepunch.com/gmod/Steam_Game_Server_Accounts) page says that since May 2020 every Garry's Mod server should have one, and that servers without it "will suffer a severe penalty in server list ranking". Create it at `steamcommunity.com/dev/managegameservers` with app ID **4000** (the game, not the server's 4020). Each server needs its own token: one token on two servers ends in `Steam error code 6` disconnects. An invalid or expired token stops the server from starting, and changing your Steam password invalidates all your tokens.

**Ports.** Players connect over UDP on the game port, 27015 by default. Source's remote console (RCON) listens on **TCP** on that same port, and `-port` moves both together, according to Valve's [RCON protocol page](https://developer.valvesoftware.com/wiki/Source_RCON_Protocol). Forward UDP 27015 on your router; forward TCP only if you really need RCON from outside.

## 4. server.cfg: name, password and RCON

Console variables live in `garrysmod/cfg/server.cfg`. A minimal file:

```
hostname "Friday Build Night" sv_password "pickles42" rcon_password "a-long-random-string" sv_location "eu"
```

- **`hostname`** is the name in the server browser.
- **`sv_password`** locks the server. Players set it with `password "pickles42"` in the developer console before they `connect`.
- **`rcon_password`** protects the remote console. The engine bans addresses after failed attempts; the [ConVar list](https://wiki.facepunch.com/gmod/ConVars_In_Garrysmod) defaults to `sv_rcon_maxfailures 10`, and `sv_rcon_banpenalty` sets the ban length in minutes. Use a long password and keep TCP closed if you do not need it.
- **`sv_location`** shows a flag in the browser. Facepunch's [server operator rules](https://wiki.facepunch.com/gmod/Server_Operator_Rules) ask for a correct value; `eu` is the European Union flag.

Two Sandbox convars change the feel of a build server: `sbox_noclip` (on by default) and `sbox_playershurtplayers` (on by default). Admins go in `garrysmod/settings/users.txt`, which ships with `superadmin` and `admin` sections, each holding `"name" "STEAM_0:x:y"` lines ([the default file](https://github.com/Facepunch/garrysmod/blob/master/garrysmod/settings/users.txt)).

## 5. Workshop collections and client downloads

The easiest way to add addons is a Steam Workshop collection. From the [Workshop for Dedicated Servers](https://wiki.facepunch.com/gmod/Workshop_for_Dedicated_Servers) page:

1. Create a collection for Garry's Mod on the Workshop and add your addons. Make it **public or unlisted**; a private collection cannot be read by srcds.
2. Copy the number at the end of its URL.
3. Add `+host_workshop_collection <id>` to the launch line. The server downloads and mounts the whole collection at every start, nested collections included, and updates the addons each time.

The server downloading an addon is half the job: **players** need its models and materials too, or they see errors. The [Serving Content](https://wiki.facepunch.com/gmod/Serving_Content) page ranks the options:

- **WorkshopDL:** the fastest. A server-side Lua file calls `resource.AddWorkshop("<id>")` for each addon with content. The wiki shows `garrysmod/lua/autorun/server/workshop.lua` or a legacy addon folder. The current map is marked automatically when it is in the collection, and so is the gamemode when its `.txt` file carries a `workshopid`.
- **FastDL:** your own web server, set in `sv_downloadurl`, with files marked by `resource.AddFile`.
- **ServerDL:** `sv_allowdownload`, capped at about 64 KB/s and open to abuse. Avoid it.

Lua files themselves are not "content" and download without setup. To freeze addon versions, `host_workshop_autoupdate 0` stops the update at start, at the cost of map mismatches when an author updates.

## 6. Gamemodes: Sandbox, TTT and DarkRP

The game's own repository ships three gamemode folders: `base`, `sandbox` and `terrortown` ([Facepunch/garrysmod on GitHub](https://github.com/Facepunch/garrysmod/tree/master/garrysmod/gamemodes)).

- **Sandbox:** `+gamemode sandbox`, with `gm_construct` or `gm_flatgrass`.
- **Trouble in Terrorist Town:** `+gamemode terrortown`. Its descriptor lists maps that start with `ttt_`, so add a few TTT maps to your collection.
- **DarkRP:** a community roleplay gamemode. Its [repository](https://github.com/FPtje/DarkRP) carries the MIT licence and asks you to install it from git or its Workshop item 248302805; its `darkrp.txt` names the gamemode `darkrp`. Settings go in the separate DarkRPModification addon, and the README warns: "don't touch DarkRP's core files". Paid add-ons for DarkRP come with their own terms; read them before you upload anything.

Whatever you run, the operator rules apply: no faked player counts or server information, no malicious actions against players, and adult content behind a real consent prompt. Breaking them gets a server blacklisted.

## 7. Create a Garry's Mod server on 1up

This is the route for groups that want the server online 24/7 without a machine left on.

1. Create an account and press **+ Create server**.
2. Choose **Garry's Mod**. On Free it runs with the hourglass at ×1.5 (your free time drains 1.5 times faster); Casual and up keep it online 24/7.
3. Pick a region, London or Paris. The wizard measures your ping and suggests the nearer one.
4. On the configure step, paste your GSLT in **Steam GSLT token (optional)**. You can add it, and a password, later in the **Game** tab.
5. Create the server. It installs the current public build from Steam (app 4020) at every start, so it stays up to date.
6. When it is online, the **Overview** shows a **Subdomain** and an **IP** line. Share the **IP** line: friends type `connect <ip>:<port>` in the game's developer console.

**Garry's Mod 24/7 from Casual**

Your own Garry's Mod server online around the clock on the Casual plan, €3.00 a month.

[Garry's Mod 24/7 from Casual](https://1up-servers.com/en/signup/?plan=casual&game=gmod)

## 8. The panel settings

The **Game** tab holds the launch line and `server.cfg` keys. Every one applies on restart.

| Setting | Maps to | Notes |
| --- | --- | --- |
| **Game mode** | `+gamemode` | `sandbox` by default; lowercase folder names such as `terrortown` |
| **Starting map** | `+map` | `gm_construct` by default |
| **Max players** | `+maxplayers` | 16 by default, 2 to 128, capped by your plan's slots |
| **Server password** | `sv_password` | 4 to 64 characters, not part of the server name; empty means open |
| **Server name** | `hostname` | Empty uses your 1up server name |
| **Workshop collection** | `+host_workshop_collection` | The numeric collection ID |
| **Steam GSLT token** | `+sv_setsteamaccount` | 32 characters, never shown in logs |

A **Generated file** section shows, read only, the launch arguments and `server.cfg` lines the panel writes.

Things that work differently from a self-hosted box:

- **`server.cfg` is rewritten at every start.** **Files** warns about it when you open the file. Change the name and password in the **Game** tab instead. Convars the panel does not offer, such as `sv_location` or `sv_downloadurl`, cannot be kept there today.
- **RCON stays inside.** We set a random RCON password, and TCP on the game port is not reachable from the internet. Admin commands go through the **Console** tab.
- **Noclip is off and client Lua is blocked** (`sbox_noclip 0`, `sv_allowcslua 0`) in the file we write.

## 9. Console, admins and addons on 1up

The **Console** tab shows the server log, a command builder and a command line. Its quick commands are `say`, `kick`, `banid` (minutes and a SteamID, followed by `writeid` so the ban is saved), `status` and `changelevel`. The builder also offers `kickid`, `removeid`, `gamemode` and `writeid`.

Admins live in the **Players** tab: its **Operators** list edits `garrysmod/settings/users.txt` for you. Paste a SteamID64 or a `STEAM_0:x:y` ID and pick `admin` or `superadmin`. Changes apply the next time the server starts.

For addons outside the Workshop, **Files** uploads into `garrysmod/addons`, creates folders and edits `.lua`, `.cfg` and `.txt` files. That is also where a WorkshopDL file such as `addons/workshop/lua/autorun/server/workshop.lua` goes. We have not tested a full DarkRP install on our servers yet; take a backup in **Backups** before you try one.

Sizing: our catalogue gives Garry's Mod a 2 GB minimum and recommends 4 GB. From [our pricing page](https://1up-servers.com/en/pricing/): Casual (€3/month) has 2 GB, 6 slots and 1 backup, enough for Sandbox or TTT with a light collection; Starter (€5) has the recommended 4 GB and 10 slots; Pro (€10) has 8 GB and 30 slots for DarkRP with a big collection.

Running other Steam games too? Our guides to a [free Unturned server](https://1up-servers.com/en/blog/free-unturned-server/) (another game that uses a GSLT) and a [Core Keeper dedicated server](https://1up-servers.com/en/blog/core-keeper-dedicated-server/) follow the same steps. Our guide to [free vs paid game server hosting](https://1up-servers.com/en/blog/free-vs-paid-game-server-hosting/) compares the routes in more depth.

**Garry's Mod 24/7 from Casual**

Your own Garry's Mod server online around the clock on the Casual plan, €3.00 a month.

[Garry's Mod 24/7 from Casual](https://1up-servers.com/en/signup/?plan=casual&game=gmod)

Tested on Garry's Mod Dedicated Server build 25375525 (public branch, September 2026 Update), 2026-10-06: launch line, settings and files checked against our image on 1up v0.258.0. No game client has joined a Garry's Mod server on our cluster for this guide.

**Change log**

- 2026-10-06: first version.
- 2026-10-20: Free now runs Garry's Mod with the hourglass at ×1.5; Casual is €3.
- 2026-10-26: current Starter and Pro figures (€5/4 GB, €10/8 GB/30 slots).

## Frequently asked questions

Yes. The server software is free: install app 4020 with SteamCMD and an anonymous login, add a GSLT and run srcds on your own PC or VPS. You pay with the machine, the power and your time. On 1up, Garry's Mod runs on Free with the hourglass at ×1.5, and 24/7 from Casual.

About the author[Baurtock](https://1up-servers.com/en/blog/author/baurtock/)Founder, developer and support

## Keep reading

[Space Engineers · 7 min**Space Engineers Dedicated Server: Setup, Worlds, Admins and RAM**](https://1up-servers.com/en/blog/space-engineers-dedicated-server/)[Icarus · 7 min**Icarus Dedicated Server: Setup, Olympus, Admin Commands and RAM**](https://1up-servers.com/en/blog/icarus-dedicated-server/)[Return to Moria · 6 min**Return to Moria Dedicated Server: Setup, Invite Code, Saves and RAM**](https://1up-servers.com/en/blog/return-to-moria-dedicated-server/)
