Password Protect Your Garry's Mod Server
Setting a password restricts your server to invited players only. The password is controlled by the sv_password cvar in server.cfg. For other configuration options, see Change Server Name or Configure RCON.
Steps
1. Log in to the Game Control Panel and navigate to your server.
2. Click the Configuration Files module.
3. Open server.cfg in the text editor.
4. Add or edit the sv_password setting:
sv_password "yourpassword"
5. Save the file.
6. Restart the server.
Players will now be prompted to enter the password when connecting.
Note: To remove the password and make the server public again, set
sv_passwordto an empty string:sv_password ""