# Persistent Steam ID with a Game-Server Token (/docs/sbox/server-token)



By default, every time you start the s\&box dedicated server it generates a **new Steam ID**. That means players who favourite your server can't reliably reconnect to it after a restart.

The `+net_game_server_token` switch lets you bind your server to a persistent Steam ID by passing a token generated under your Steam account.

> ⚠️ **Availability:** This option is **not required** and is **only available once s\&box is released**. Until then, your server will keep cycling through generated Steam IDs.

Generating a Token [#generating-a-token]

1. Visit the Steam game-server page: **[steamcommunity.com/dev/managegameservers](https://steamcommunity.com/dev/managegameservers)**.
2. Sign in with the Steam account you want the server tied to.
3. Generate a token associated with that account.

Using the Token [#using-the-token]

Pass it on the command line:

```bat
sbox-server.exe +game facepunch.sandbox facepunch.flatgrass +hostname "My Server" +net_game_server_token YOUR_TOKEN_HERE
```

Once set, the server will use the same Steam ID across restarts, so favourites and direct-connect links keep working.

> 🔒 **Treat the token like a password.** Don't commit it to a public repo or share it — anyone with it can impersonate your server's Steam identity.

Related Guides [#related-guides]

* [Launch Parameters](/docs/sbox/launch-parameters)
* [Connect to Your Server](/docs/sbox/connect-to-your-server)
