How to set up an Unturned game server login token

The token is optional: without it the server runs and players join with the address from your welcome email. Your own token, made with app ID 304930 and pasted on the Startup tab, puts the server on the Internet list and keeps its Server Code the same.

What the token does

A game server login token, often called a GSLT, lets your Unturned server log in to Steam as a game server. Smartly Dressed Games, who make Unturned, describe it on their game server login token page.

On our servers the token is optional. Without one the server runs, and players join with the address from your welcome email. Smartly Dressed Games call a server without a token "anonymous" and say it is hidden from the Internet server list. Its Server Code also changes every time it restarts, so the address is the way to join that does not change.

With your own token, the server is on the Internet server list and the Server Code stays linked to the token between restarts. Friends can save it once.

Before you start

Valve's game server account page sets these rules for the Steam account that creates the token:

  • It must own the game the token is for, here Unturned.
  • It must have a qualifying registered phone number.
  • It must not be limited.
  • It must not be community banned or locked.

Use your own Steam account, the one you play on or one you keep for your server. The token stays tied to that account.

Create the token

  1. Sign in to Steam's game server account page with the Steam account described above.
  2. Enter 304930 as the app ID. This is Unturned's app ID, the one Smartly Dressed Games tell you to use.
  3. Write a memo that reminds you which server the token is for, for example the server's name. The memo is only for you.
  4. Create the token and copy it. It appears in the list on the same page, so you can come back to it.

Add it to your server

  1. Open the panel and choose your Unturned server.
  2. Open the Startup tab and paste the token into the Game Server Login Token (GSLT) field, with no spaces before or after it. Paste it exactly as Steam shows it. The panel field accepts letters and digits only, up to 64 characters, and refuses anything else, so a refused paste usually means a stray space or character came along with the copy.
  3. Restart the server from the Console tab. A change on the Startup tab takes effect at the next restart.
  4. Watch the Console tab. A PlayDubious line says the login token is set and how many characters it has; the token itself is never printed. Once the server has finished loading, the console shows the Server Code.

Smartly Dressed Games also describe two other places for the token: the Login_Token setting in the server configuration and a GSLT line in Commands.dat. On our servers, use the Startup tab: Commands.dat is rewritten from the Startup tab at every start, and a GSLT line in Commands.extra.dat is left out. The token then sits in one place and you always know where to change it.

Why it has to be your own

Valve's page says it plainly: "Do not distribute game server login tokens to third parties." It also says that if your game server accounts are banned for any reason, you may be restricted from playing the associated games. A token is a key to your Steam account's standing, not just a server setting.

So you create the token yourself and paste it yourself. We never create a token for you, never ask for one, and do not want one by email or in a ticket. If you send us a screenshot of the Startup tab or the console, cover the token first.

Do not lend your token to a friend or a clan for their server, and do not use a token someone else made for you. If the server that uses it breaks Valve's or Smartly Dressed Games' rules, the ban lands on the account that made the token.

Your Server Code

Smartly Dressed Games' Server Codes page describes the code as a randomly generated, 17-digit number assigned to your server. Players type it into Unturned's Connect Directly menu to join.

There are three ways to find it. The Console tab shows it right after the server finishes loading. In the game, the Copy Server Code button copies it while you are on the server. The CopyServerCode command copies it too.

Without a token the code changes at every restart. With your token set, it stays the same, so friends can keep it. Players can also join with the address from your welcome email.

When the token stops working

  • It expired. Valve says a token that goes unused for a long time expires, and that an expired token can be regenerated on the same page. Regenerate it, paste the new one on the Startup tab and restart.
  • You reset your Steam password. Valve says a password reset regenerates all of your tokens. Copy the new token from the page, paste it in and restart.
  • You no longer want a token. Clear the field on the Startup tab and restart. The server runs anonymous again, off the Internet list, and the Server Code changes at every restart. Players can still join with the address from your welcome email.

If the server will not start after a token change, read the last lines in the Console tab, then email support@playdubious.com with your server name and what the console says. Never send the token itself.

Unturned servers hosted here are unofficial. Unturned is a trademark of Smartly Dressed Games Ltd.; PlayDubious is not affiliated with Smartly Dressed Games.

Quick answers

Do I need a token to run an Unturned server?

No. Without one the server runs and players join with the address from your welcome email. It is anonymous, though: hidden from the Internet server list, and its Server Code changes at every restart.

Which app ID do I use?

304930, Unturned's app ID, as Smartly Dressed Games' token page says.

Can you make the token for me?

No. Valve says not to give game server login tokens to third parties, so you create and paste your own. We never ask for it.

Does the Server Code change when the server restarts?

Without a token it changes at every restart. With your own token set, it stays the same.

Questions? Email support@playdubious.com first. Ready to host Unturned?

See Unturned plans