How To Set a Password on Your Garry's Mod Server

Learn how to password protect your Garry's Mod dedicated server.

Setting a password on your Garry's Mod server restricts access to only players who know the password.

Open the Startup Page

Log in to the XGamingServer Panel and select your Garry's Mod server. In the sidebar, click Startup.

Set the Server Password

Find the Server Password field and enter the password you want.

Restart Your Server

Go to Console in the sidebar and restart your server.

Players will need to enter the password when joining through the server browser. They can also connect via the console using:

password yourpassword
connect YOUR_IP:YOUR_PORT

💡 Tip: You can also set the password in garrysmod/cfg/server.cfg with:

sv_password "yourpassword"

📝 Note: To remove the password, clear the password field in Startup and restart the server.

How is this guide?

40% Off — Limited TimeGet your Garrys Mod server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page