Before your Mount & Blade II: Bannerlord game server can start and appear in the server list, it needs a server token. TaleWorlds does not support anonymous hosting: every dedicated server signs in with a token that you generate in-game. In this guide, we’ll show you how to create the token, add it in ZapX, and renew it in time.
You need your own copy of Mount & Blade II: Bannerlord and must be able to sign in to multiplayer with it. The token is generated for your Bannerlord account, not for the server.
- Start Bannerlord in Multiplayer mode and sign in to the lobby.
- Open the console with ALT + ~ (the tilde key, usually to the left of 1 on German keyboards).
- Enter the following command and press Enter:
customserver.gettoken
The game will now generate your token and save it as a text file on your PC:
Dokumente\Mount and Blade II Bannerlord\Tokens\DedicatedCustomServerAuthToken.txt
Open the file in a text editor and copy its entire contents. This is your token.
Treat your token like a password. It is permanently linked to your Bannerlord account. According to TaleWorlds, any misuse through a server using your token will be traced back to your account. Do not share it with anyone or post it publicly.
- Open your server in ZapX and go to the Configuration tab.
- In the Startup Parameters category, find the Server Token field. It is marked with a red asterisk to show that it is required.
- Paste your token there and click Save.
- Start your server. If it is already running, select Restart Now to apply the new token.
ZapX takes care of the rest: when the server starts, the token is automatically passed to it as a token file, so it won’t appear in the console log. The token is hidden like a password in the field; click the eye icon to show it if needed.
Your server cannot start while the Server Token field is empty. If you click Start, you’ll see the message Required settings are missing. Select Go to settings to jump straight to the right field.
With a valid token, your server signs in to TaleWorlds when it starts and then appears in the game’s Custom Server List. For instructions on how to connect, see our guide Connect to the server.
For security reasons, your token expires after 3 months. Once it expires, your server can no longer sign in and will shut down shortly after starting. Renewing it is quick:
- Generate a new token in-game using
customserver.gettoken. - In the Configuration tab, replace the contents of the Server Token field with the new token and save.
- Restart your server.
Add the expiration date to your calendar as soon as you generate a new token. That way, your server can stay online without interruption.
You can currently run up to 50 servers at the same time with one Bannerlord account.
Your server is now ready to start for the first time. For setup instructions, see our guide Server configuration. If you have any other questions, our support team is available every day! 🙂
