Why your s&box server needs +net_game_server_token
Without a Steam game server login token, an s&box dedicated server logs on to Steam anonymously and gets a new Steam ID every time it starts.

When you start an s&box dedicated server without a Steam game server login token (GSLT), the server logs on to Steam anonymously. The server still runs, and Facepunch's dedicated server documentation (sbox.game/dev/doc/networking/dedicated-servers) lists the token as optional. The cost is a temporary Steam ID that changes every time the server process starts. This note explains how a token keeps the Steam ID the same and how to keep the token safe.
How the server registers with Steam
Before the dedicated server starts a game, the engine initializes the Steam game server API with a game port and a query port. In the engine source, the game port (+port) defaults to 27015 and the query port (+net_query_port) defaults to 27016. Facepunch's documentation lists both switches but gives no defaults. The engine sets its Steam App ID to 590830, the s&box App ID. It then logs on to Steam, with your token if you set one and anonymously if you did not. Once it is logged on, it tells Steam to advertise the server.
By default, s&box does not expose your server's IP address. Players connect through Steam's relay. The engine also requests a Steam FakeIP for the server, because its net_hide_address setting is on by default. Valve's Steamworks documentation says a FakeIP replaces the public IP wherever it would normally appear, such as the server browser.
Without a token, the anonymous logon gives the server a temporary Steam ID. Facepunch's documentation says the server generates a new Steam ID each time it loads without the token. So any restart gives the server a different Steam ID, whether it follows an update, a crash or an operating system patch. Since update 26.11.10 (November 10, 2026), the server prints its Steam ID in the console when it starts a game. Compare that line before and after a restart to see the change.
What a changing Steam ID costs you
Players join a dedicated server through its Steam ID. Facepunch's documentation says the token keeps the same Steam ID for other players to connect to. Players type connect and the ID in the game console, without a steamid: prefix. The documentation calls this ID the lobby ID and says the status command in the server console shows it. When the Steam ID changes, a connect command saved before the restart no longer reaches your server. Anyone you gave the old ID needs the new one. A server list that keys servers by Steam ID also sees a new entry after every restart.
Keep the same Steam ID with +net_game_server_token
Passing +net_game_server_token YOUR_TOKEN on the command line makes the server log on with your token instead of anonymously. Valve's Steamworks documentation describes a token logon as a login to a persistent game server account. Facepunch's documentation says the token keeps the same Steam ID for players to connect to. Your server then keeps its Steam ID across restarts.
Valve's Web API identifies each game server account by the account's own Steam ID. Neither Valve's token page nor Facepunch's documentation ties a token to one machine. If you move the server to a new machine with the same token, compare the Steam ID it prints at startup with the old one.
Facepunch's documentation still says this option is only available once s&box is released. The game was released on Steam on April 28, 2026, and the engine source passes the token to Steam whenever it is set.
You create a token on Steam's Game Server Account Management page (steamcommunity.com/dev/managegameservers). Valve lists the account requirements there. Your Steam account must have a qualifying registered phone and must own the game. It must not be limited, community banned or locked. Each token belongs to one App ID and carries a memo. We suggest a memo that names the machine and port (for example, eu-west-sandbox-27015). Then you can tell your tokens apart when you check, regenerate or delete one.
Facepunch's documentation does not say which App ID to create the token for. The engine uses 590830, as described above, while the server files install from SteamCMD as app 1892930. A token that goes unused for a long time expires. Steam regenerates all your tokens if you reset your Steam password through Steam's help site or if Steam Support resets it. When either happens, put the new token in your launch command.
Keep the token safe in Docker Compose
Never put a token in a public Dockerfile, Git repository or world-readable shell script. Valve's page says not to give tokens to third parties, and to delete any token you did give out. Create a separate token for each server, so you can regenerate or delete one without touching the others.
In Docker Compose, keep the token in a .env file next to compose.yaml (SBOX_GSLT=your_token_here). Give that file chmod 600 permissions. Pass it on the server command line as +net_game_server_token ${SBOX_GSLT:?set SBOX_GSLT in .env}. Compose fills in the value from the .env file, but a variable set in your shell takes priority. With the :? form, Compose stops with an error when the variable is missing or empty. Without it, Compose only warns and fills in an empty value, so your token never reaches the server.
Compose stops a container by sending SIGTERM, and sends SIGKILL if the container has not exited after 10 seconds. When the s&box server shuts down cleanly, the engine logs it off Steam. Facepunch does not document whether SIGTERM starts that clean shutdown. If it does, stop_grace_period: 15s gives the server 15 seconds instead of 10. Any saving of player data is up to the game you run.
Build a launch command
Keep your token in an environment file or a startup secret, not in a public configuration repository. Our Dedicated Server Configurator builds a Windows, Linux or Docker launch command with a +net_game_server_token placeholder. It never asks for your token, and the Docker command expects an image you build yourself. Open it from the Open tool link below this article, or from Server configurator in the footer. Check that its query port is 27016, the engine's default query port. The tool does not write +port, so the game port stays at the engine default of 27015.
Related: server configurator.
All news · Guides · Follow @sboxlist on Instagram and TikTok.
Comments
No comments yet.