Unturned Server Setup Guide
This guide covers how to get your Unturned dedicated server running on Legion Hosting, including server configuration, GSLT setup, map selection, and how to connect.
Getting Started
Your Unturned server is managed through the GPanel control panel. Log in to start, stop, or restart your server and access the file manager.
- Start your server at least once from GPanel so that it generates all default configuration files, including
Commands.datand the workshop config, before editing them. - Generate a Game Server Login Token (GSLT) for your server — see the GSLT section below. Without it, your server may not appear in the public server browser.
Game Server Login Token (GSLT)
Unturned requires a Game Server Login Token for your server to be listed publicly in the Steam server browser. Without a valid GSLT, your server will still function but may not appear in the server list for other players.
Generating a GSLT
- Visit the Steam Game Server Account Management page and log in with your Steam account.
- Under "Create a new game server account", enter App ID 304930 (Unturned Dedicated Server) and an optional memo (e.g., your server name).
- Click Create. Steam will generate a login token for you — copy it.
Applying the GSLT
- Log in to GPanel and select your Unturned server.
- Navigate to the Startup tab.
- Find the GSLT (or Game Server Login Token) field and paste your token.
- Restart your server for the token to take effect.
Commands.dat Configuration
The primary server configuration file is located at:
Servers/default/Commands.dat
You can edit this file directly in the GPanel file manager or via SFTP. Each setting is placed on its own line in the format shown below.
Core Settings
| Directive | Example | Description |
|---|---|---|
Name |
Name My Unturned Server |
Server name shown in the browser and on Steam. |
Port |
Port 27015 |
Game port. Set this to match the port assigned in GPanel's Network tab. Query port is automatically Port + 1. |
Map |
Map PEI |
Map to load on startup. See the Map Options section below. |
MaxPlayers |
MaxPlayers 24 |
Maximum concurrent players allowed (1-200). |
Password |
Password mysecret |
Optional join password. Remove the line entirely for a public server. |
PvP |
PvP |
Enables player-versus-player combat. Use PvE instead for cooperative play. |
PvE |
PvE |
Disables player damage to other players. |
Mode |
Mode Normal |
Difficulty: Easy, Normal, or Hard. |
Perspective |
Perspective Both |
Camera: First, Third, Both, or Vehicle. |
Owner |
Owner 76561198000000000 |
64-bit SteamID of the server owner (granted admin automatically). |
Example Commands.dat
Name My Legion Hosting Server
Port 27015
Map PEI
MaxPlayers 24
Mode Normal
Perspective Both
PvP
Owner 76561198000000000
Commands.dat only take effect after a full server restart from GPanel.
Map Options
Unturned ships with several official maps. Use the exact internal name in Commands.dat.
| Map Name (Commands.dat) | Description |
|---|---|
PEI |
Prince Edward Island — beginner-friendly, medium size (default). |
Washington |
Washington State — large open map with forests. |
Russia |
Russia — largest official map, high performance demand. |
Germany |
Germany — European setting, urban areas. |
Hawaii |
Hawaii — tropical island, curated community map. |
Yukon |
Yukon — snow/winter survival map. |
Kuwait |
Kuwait — desert map, curated community map. |
Map value. See Workshop Mod Installation for details.
How to Connect
Before connecting, make sure you know your server's IP address and port. See the guide: How to Find Your Server IP and Port.
Your Unturned server uses two ports:
| Port Type | Purpose |
|---|---|
| Game Port | Players connect on this port (the primary port shown in GPanel). |
| Query Port | Steam server browser queries this port (game port + 1, assigned automatically). |
Method 1: Direct Connect (IP:Port)
- Launch Unturned and click Play.
- Select Connect from the menu.
- Enter your server's IP address and game port.
- Enter the password if one is set, then click Connect.
Method 2: Server Browser
- Launch Unturned and click Play.
- Select Servers to open the server browser.
- Use the search bar to search for your server by name (the
Namevalue fromCommands.dat). - Click your server and then click Connect.
Method 3: Steam Server Browser
- In Steam, open View > Game Servers.
- Click the Favorites tab, then click Add a Server.
- Enter your server's IP and query port (game port + 1) and click Add this address to favorites.
- Your server will appear in Favorites. Double-click to connect.
Related Articles
- Unturned Admin Setup — Permissions, admin list, and in-game admin commands.
- Unturned Mod and Plugin Installation — Workshop mods and RocketMod/LDM plugin framework.
- Unturned Troubleshooting — Common server issues and solutions.
- How to Find Your Server IP and Port
- How to Upload Files via SFTP
Need Help?
If you continue to experience issues after following this guide, our support team is available to assist you.
Open a Support Ticket