Menu
 

Fix Login Token Error - Unturned Wiki

Fix Unturned Login Token Error

If you are hosting an Unturned server, you may encounter login token authentication errors. These errors prevent your server from appearing in the community browser and can cause connection issues for players.

Starting with version 3.21.31.0, Unturned dedicated servers must use a Game Server Login Token (GSLT) to be displayed on the server list. This guide will help you set up and troubleshoot login token issues.

What is a Game Server Login Token?

A GSLT is Steam's authentication system for dedicated servers that provides several benefits:

  • Your server remains visible in the community browser between restarts
  • Players can favorite your server and it will persist across sessions
  • Steam can track your server's history and player statistics
  • Anonymous servers (without GSLT) are hidden from the internet server list

Creating a GSLT

  1. Visit the Steam Game Server Login Token management page: https://steamcommunity.com/dev/managegameservers
  2. Log in with your Steam account
  3. Enter Unturned's App ID: 304930
  4. Add a memo to remind you which server this token is for (e.g., "My Unturned Server")
  5. Click "Create" to generate your token
  6. Important: Copy and save your GSLT immediately - you won't be able to see it again

Security Note: Never share your GSLT publicly. Each Steam account can create a limited number of tokens, so keep them secure.

Configuring Your Server

You can set the GSLT in two different ways:

Method 1: Config.json (Recommended)

  1. Navigate to your server's Config directory
  2. Open Config.json in a text editor
  3. Find the "Browser" section
  4. Add or modify the "Login_Token" field:
{
    "Browser": {
        "Login_Token": "YOUR_GSLT_HERE",
        "Password": "your_server_password"
    }
}

Method 2: Commands.dat

  1. Open your server's Commands.dat file
  2. Add the following line:
GSLT YOUR_GSLT_HERE

Troubleshooting Common Issues

Error Message The Fix
Server not appearing in browserEnsure your GSLT is properly configured in Config.json, not Commands.dat. Restart the server after making changes.
"Invalid GSLT" errorDouble-check that you copied the entire token correctly. GSLTs are long alphanumeric strings.
Players can't connect via server codesWithout a GSLT, server codes change every restart. Set up a GSLT to maintain consistent server codes.
Anonymous server warningThis means your GSLT isn't working. Verify the token is valid and properly configured.

Advanced GSLT Management

For server owners managing multiple servers, Valve provides an API to automate GSLT creation and management. The IGameServersService web API allows programmatic token generation for large-scale deployments.

Pro Tip: If you're using a hosting provider like Supercraft, GSLT setup is often automated through the control panel. Check your server settings for a "Login Token" or "Authentication" section.

Ensure your Unturned server is properly authenticated and visible to players by setting up your GSLT today.

Top