
Garry's Mod is a physics sandbox. There aren't any predefined aims or goals. We give you the tools and leave you to play.
Here's what you need to run a Garry's Mod dedicated server.
Small server, 2-12 players
Medium server with addons, 12-32 players
Large server, heavy addons, 32-64 players
Start hosting from your own computer
Run a Garry's Mod server on your desktop, laptop, VPS, or dedicated machine — GameCP automates Docker setup, resource allocation, and Garry's Mod configuration instantly. Automatic port forwarding means your friends can connect without touching your router. Start local, scale to a VPS when you're ready.
Skip the manual SteamCMD installation, port forwarding, and systemd configuration. Install on your own computer and start hosting instantly.
The full manual process to host a Garry's Mod dedicated server on a VPS. Or install GameCP on your own computer and skip all of this.
Set your server settings, then install Docker, SteamCMD, and pull the Garry's Mod container image.
# Update system and install Docker sudo apt update && sudo apt install -y docker.io sudo systemctl enable --now docker # Create game server directory sudo mkdir -p /opt/gameserver # Install SteamCMD sudo mkdir -p /opt/steamcmd curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | sudo tar zxvf - -C /opt/steamcmd # Server configuration export MAX_PLAYERS="24" export SRCDS_MAP="gm_flatgrass" export GAMEMODE="sandbox" export TICKRATE="22" export LUA_REFRESH="0" export AUTO_UPDATE="1" # Pull the container image docker pull ghcr.io/ptero-eggs/games:source
Download the Garry's Mod dedicated server using Steam App ID 4020.
# Download Garry's Mod server files (App ID: 4020) /opt/steamcmd/steamcmd.sh \ +force_install_dir /opt/gameserver \ +login anonymous \ +app_update 4020 validate \ +quit
Garry's Mod requires 1 port to be open for game traffic and queries.
sudo ufw allow 27015/both
Start the Garry's Mod server using the configuration from Step 1.
docker run -d \ --name garrys-mod-server \ -p 27015:27015/both \ -e MAX_PLAYERS="24" \ -e SRCDS_MAP="gm_flatgrass" \ -e GAMEMODE="sandbox" \ -e TICKRATE="22" \ -e LUA_REFRESH="0" \ -e AUTO_UPDATE="1" \ -v /opt/gameserver:/opt/gameserver \ -w /opt/gameserver \ ghcr.io/ptero-eggs/games:source \ ./srcds_run -game garrysmod -console -port 27015 +ip 0.0.0.0 +host_workshop_collection +map gm_flatgrass +gamemode sandbox -strictportbind -norestart +sv_setsteamaccount +maxplayers 24 -tickrate 22
Alternative startup profiles:
GameCP lets you switch between these profiles with one click.
GameCP automates every step above: Docker, SteamCMD, port forwarding, startup, and config. Install on your own PC and deploy a Garry's Mod server in under 5 minutes.
Deploy with GameCPExplore step-by-step setup guides for other popular games supported by GameCP.
Install GameCP on your own computer and start hosting in minutes. Automatic port forwarding, zero config — your friends connect instantly.
No credit card required · Free tier available · Install local, scale later