How to make a Garry's Mod server for friends

From nothing to a server your friends can join: the token, the gamemode, the addons, the address, and the problems that come up on the first night.

What you need

A server of your own means your group plays your gamemode, on your map, with your addons, whenever you want. This guide works whether the server runs on your own PC, a spare machine at home or a host.

  • Garry's Mod on every player's PC. Each friend needs their own copy.
  • A dedicated server. It is a separate free download from Steam (SteamCMD app 4020), or a host installs it for you. You can also start a game from the Garry's Mod menu for a quick session, but a dedicated server keeps running when you close the game.
  • A Steam game server login token, if you want the server to be found in the server list. More on this below.
  • Someone to run it. That is you.

Get your own Steam login token

Facepunch's wiki says: "Servers without a GSLT will suffer a severe penalty in server list ranking." A server without a token still runs, but people will struggle to find it in the list.

  1. Sign in at Steam's game server page on steamcommunity.com with your own Steam account.
  2. Enter 4000 as the App ID. Facepunch's wiki says it "should always be set to 4000 for Garry's Mod."
  3. Create the token and copy it.
  4. Start the server with +sv_setsteamaccount YOURTOKEN on the command line, or put it in the token setting of your own server if a host runs it, then restart.

Valve's rules on that page: your account must not be limited, locked or community banned, and it must have a qualifying registered phone. Facepunch adds that a verified purchase on Steam is needed.

The token is yours and it goes on your server only. Valve's page says: "Do not distribute game server login tokens to third parties." Do not pass it to friends or clans, and do not send it to anyone by email or chat. We never create a token for a customer or ask anyone to send us theirs. A few more rules from Facepunch and Valve:

  • One token per server. Facepunch's wiki says each server must have its own.
  • Changing your Steam password invalidates all your tokens.
  • A token that is never used for a long time expires.

In each case, make a new one on the same page and restart.

Pick a gamemode and a map

The gamemode and map are set when the server starts. Facepunch's own example is srcds.exe +maxplayers 20 -console +gamemode sandbox +map gm_construct +sv_setsteamaccount YOURTOKEN.

  • Sandbox (sandbox) is the default: build, spawn, mess around. A good first night.
  • Trouble in Terrorist Town (terrortown) comes with the game and needs a map made for it; those start with ttt_.
  • Other gamemodes, such as DarkRP or Prop Hunt, are not included. Add them to your Workshop collection (next section), then use the gamemode's folder name in +gamemode.
  • The map is its name without .bsp. gm_construct and gm_flatgrass come with the game; Workshop maps work once they are in your collection.

Pick a map that suits the gamemode. A Sandbox map in TTT gives you a round that never makes sense.

Add addons with a Workshop collection

  1. On the Steam Workshop for Garry's Mod, make a collection with your addons, maps and gamemodes.
  2. Set it to public or unlisted. Facepunch's wiki warns that otherwise the server cannot access it.
  3. Copy the collection ID: the number at the end of the collection's address, after ?id=.
  4. Start the server with +host_workshop_collection 123456789 (your number), or put the ID in your host's Workshop setting, and restart.

The server downloads every item at start. Collections can be nested, and the server downloads the sub-collections too. Maps in the collection are marked for players to download automatically, and so are gamemodes that carry their Workshop ID.

General guidance: start small. Ten addons that work beat a hundred that conflict. Add a few, restart, play, then add more.

How friends join

From the server browser. With a token and the server listed, friends open Find Multiplayer Game, then the Legacy Browser, and search for your server name. Your name is hostname in garrysmod/cfg/server.cfg.

By address. In the Legacy Browser, open Favorites, press Add a Server and type your address and port, for example 203.0.113.10:27015. They can also open the developer console and type connect 203.0.113.10:27015.

Friends only? Set a password with sv_password "yourpassword" in server.cfg. To keep the server out of the browser altogether, Facepunch's wiki says hide_server 1 "will hide the server from the server browser."

If you host at home, forward the server's port on your router (27015 is the usual default, UDP) and allow the server through your firewall.

How much RAM

Facepunch does not publish a RAM figure for a dedicated server. General guidance: the gamemode and the addon load drive memory more than the player count does. Sandbox with a handful of friends and a small collection is light. A roleplay gamemode with a large collection is much heavier, and every big map you add takes more. If you host at home, check the server's memory use after a full evening and size from that.

If you rent a server, the plan sizes give you a starting point. Our two Garry's Mod plans:

Plans and prices are read from the same list as the pricing page. Player counts are recommendations, not limits.
PlanPriceRAMRecommended playersStoragevCPUBackup slots
Garry's Mod$12/mo4 GBUp to 2430 GB1.53
Garry's Mod Large$24/mo8 GB24–6450 GB24

See the Garry's Mod plans and order

Garry's Mod lists up to 24 recommended players and Garry's Mod Large lists 24–64. Player numbers are a recommendation, not a limit, and there is no charge per player. Both plans are month to month, with a nightly restart and 3 to 4 backup slots, depending on the plan. For a group of friends on Sandbox or TTT, the smaller plan is the place to start. Garry's Mod server setup shows where each setting is in our panel.

Common first-night problems

  1. The server never finishes starting. Read the last lines of the console. A map name that is not installed, or a misspelt one, is the usual cause; the console names the map. Fix the name or add the map to your collection.
  2. "Could not establish connection to Steam servers". The token is wrong or expired. Make a new one, or start without it to test.
  3. Players get kicked when a second server starts. Two servers are sharing one token. Give each its own.
  4. The server is not in the list. No token, hide_server 1 is set, or the port is not reachable from outside.
  5. Addons do not load. The collection is private, or the Workshop setting holds more than the number.
  6. Friends see missing textures or ERROR models. They are missing content the server uses. Check that the item is in your collection, so it downloads to them when they join.

Before any big change, make a backup of the server folder, so you can go back.

Play by the rules

Facepunch's Server Operator Rules say "Do not fake server information", ask for a correct sv_location, and warn that breaking the rules gets a server blacklisted. Keep the location honest and the player count real.

Garry's Mod servers hosted here are unofficial and not affiliated with Facepunch.

Quick answers

Do I need a Steam token for a Garry's Mod server?

The server runs without one, but Facepunch's wiki says servers without a token are ranked far down the server list. You create your own at Steam's game server page, with App ID 4000.

Can friends join without the server browser?

Yes. In the Legacy Browser they open Favorites, press Add a Server and type your address and port.

Does every friend need to own Garry's Mod?

Yes. Each player needs their own copy of the game. The dedicated server itself is a free download.

Questions? Email support@playdubious.com first. Ready to host Garry's Mod?

See Garry's Mod plans