Garry's Mod Dedicated Server: Admin Commands & server.cfg Guide

Data Verified: May 2026

Complete Garry's Mod (GMod) server reference. Configure server.cfg, manage Workshop addon collections, run ULX/ULib admin mods, and size hardware for DarkRP, TTT, and sandbox communities.

Default file locations

Default installation paths for Garry's Mod dedicated servers installed via SteamCMD.

Windows

C:\srcds\garrysmod\

Linux

/home/steam/gmodds/garrysmod/

Pro-Tip: Always stop the server completely before editing configuration files, or the server will overwrite your changes upon restart.

Default ports for port forwarding

Open these on your router and firewall before exposing the server to the internet.

Default ports for Garry's Mod
ServiceProtocolPort
Game PortUDP27015
Query PortUDP27015
RCON / TelnetTCP27015

Quick start: launch your Garry's Mod server

Copy-paste these two commands to install and start a Garry's Mod dedicated server. Tested against SteamCMD on a fresh box.

Step 1, Install via SteamCMDSteam App ID 4020

steamcmd +force_install_dir /home/steam/gmodserver +login anonymous +app_update 4020 validate +quit

Step 2, Launch the Garry's Mod server

cd /home/steam/gmodserver && ./srcds_run -game garrysmod +map gm_construct +maxplayers 24 +gamemode sandbox

Step 1, Install via SteamCMDSteam App ID 4020

steamcmd +force_install_dir "C:\gmodserver" +login anonymous +app_update 4020 validate +quit

Step 2, Launch the Garry's Mod server

C:\gmodserver\srcds.exe -console -game garrysmod +map gm_construct +maxplayers 24 +gamemode sandbox

Frequently asked questions

Browse all games →

Host your own Garry's Mod server

All hosting guides →

Step-by-step install and deploy walkthroughs (panels, ports, RAM sizing). Pair these with the command reference above.