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
- Visit the Steam Game Server Login Token management page: https://steamcommunity.com/dev/managegameservers
- Log in with your Steam account
- Enter Unturned's App ID:
304930 - Add a memo to remind you which server this token is for (e.g., "My Unturned Server")
- Click "Create" to generate your token
- 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)
- Navigate to your server's Config directory
- Open
Config.jsonin a text editor - Find the
"Browser"section - Add or modify the
"Login_Token"field:
{
"Browser": {
"Login_Token": "YOUR_GSLT_HERE",
"Password": "your_server_password"
}
}
Method 2: Commands.dat
- Open your server's
Commands.datfile - Add the following line:
GSLT YOUR_GSLT_HERE
Troubleshooting Common Issues
| Error Message | The Fix |
|---|---|
| Server not appearing in browser | Ensure your GSLT is properly configured in Config.json, not Commands.dat. Restart the server after making changes. |
| "Invalid GSLT" error | Double-check that you copied the entire token correctly. GSLTs are long alphanumeric strings. |
| Players can't connect via server codes | Without a GSLT, server codes change every restart. Set up a GSLT to maintain consistent server codes. |
| Anonymous server warning | This 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.