Garry's Mod Wiki

Revision Difference

Steam_Game_Server_Accounts#526766

<cat>Play.Hosting</cat> With the December 2015 update Garry's Mod game servers may now use the Steam Game Server Accounts feature. With May 2020 update all Garry's Mod servers should have GSLT token, or otherwise their server will receive a massive penalty in server list ranking. ## Why do I need a Steam Game Server Account? What does it do? Essentially Steam Game Server Account helps your players find your server should the IP address of your server be changed. ## How to get a Steam Game Server Account? The process of setting this up for your server is pretty straight forward. First log into your Steam account and follow this link: https://steamcommunity.com/dev/managegameservers Make sure your Steam account matches all the requirements, then enter the required information into the text boxes on the page. * The first field should always be set to `4000` for Garry's Mod. * The second field can be anything that will help you identify the specific server in a list of other Steam Game Server Accounts. Then press Create. After pressing Create, the page will reload and a new entry will be shown on the page, containing the memo, the login token and the app id for which the login token is generated for. From this page you also can: * Delete any Login Tokens you own * Generate a new Login Token for given server ( You will need to change it on your server too ) * Set another memo for any Login Token you own **WARNING! EACH SERVER MUST HAVE UNIQUE LOGIN TOKEN!** Once you got your Login Token, copy it and add the following to your command line parameters: ``` +sv_setsteamaccount YOURLOGINTOKENHERE ``` and restart your server. Your server will now have a static SteamID/Steam Account. ## Tips * Specifying an invalid / expired key will prevent the server from connecting to Steam servers. This can be intentionally used if you do not want to show a development server in the master server list. ``` +sv_setsteamaccount "IAmAnInvalidKey" ``` ⤶ ⤶ ⤶ * `Connection to Steam servers lost. (Steam error code 6)` being printed in server console. Clients are being disconnected. Reason: you are using same account token on two or more servers.⤶