NolimitHost
Last updated: May 6, 2026
Making your Garry's Mod server private gives you full control over who can join. This guide covers three methods: hiding your server from the server browser, adding a password, and setting up a SteamID64 whitelist for the strongest security. You can use them on their own or combine them — the recommended setup is at the bottom of this guide.
Hiding your server means it won't appear in the public server list. Players can still join using a direct IP, but random players won't stumble on it.
-nomaster to the startup arguments.If you're running on a VPS, add -nomaster to your start command:
./srcds_run -game garrysmod +map gm_flatgrass +maxplayers 16 -nomaster
Players can now only join using connect ip_address:port in the in-game console.
A server password requires anyone joining to enter the correct password before connecting.
server.cfg so the running server doesn't overwrite your changes. Start it again afterwards to apply the password.
garrysmod/cfg/.server.cfg — the main configuration file for your server — and add or edit the following line:
sv_password "YourStrongPassword"
Anyone trying to connect will be prompted for the password. To remove the password, set sv_password "".
A whitelist blocks everyone except the specific Steam accounts you approve — even if someone has the password. This is the best option for private development or closed community servers. A SteamID64 is a unique permanent number that identifies a Steam account.
garrysmod/lua/autorun/server/. If the server folder does not exist, create it.whitelist.lua and paste the following:
if not SERVER then return end
local WHITELIST = {
["76561198000000001"] = true,
["76561198000000002"] = true,
-- add more SteamID64s here
}
hook.Add("CheckPassword", "SteamID64Whitelist", function(steamID64)
if WHITELIST[steamID64] then
return true
end
return false, "You are not whitelisted on this server."
end)
For maximum security, combine all three methods: hide from the browser, set a password, and use the whitelist. This prevents discovery, casual entry, and even access from players with the password who aren't on the list.
This website uses cookies to ensure security, session management, and basic functionality. For details on all cookies used and how to manage your preferences, please see our Privacy Policy.