Articles in this section
Dedicated Server Advanced Setup
After you've configured your server (either through the Dedicated Server Admin Portal or the Alternate Configuration Option you can enable additional settings such as allow-list, and passcodes (if not configured in the Admin Portal).
Note: Cross tenant play is now available! You can learn about how to set this up here: Enabling Cross-Tenant Play
Allow-list configuration
You can configure an allow list to limit who can join your server. This cannot be done in the admin portal alone. However, you can either edit the allowlist.json file directly or use terminal commands to decide who should be allowed into your sessions.
From Terminal -
Note: This command cannot be run from in-game. Only from the terminal hosting the session.
Note: using this method will require turning the allowlist back on or off upon restarting the server. The server will default to the original configuration of the server. This will be changed in future releases.
i.e. If you create the server with the allow-list = true property in server.properties then the server will have it on by default on each startup. If you have it set to false it will default to off and will need to be turned back on each session.
- To enable or disable the allowlist, any operator can use the /allowlist on or /allowlist off commands. This will enable or disable the allowlist. When the allowlist is on, only players in this list will be allowed into the servers. All others will be blocked.
- To add someone to the allowlist use /allowlist add <DisplayName>
- To remove someone from the list use /allowlist remove <DisplayName>
From Configuration Files -
-
To explicitly specify which users can join the server, you can set “allow-list” to true in the “server.properties” file when you create your server (server will need to be restarted if running).
- By default, there are no entries in the “allowlist.json” file.
- As a result, if “allow-list” is set to true in the “server.properties” file, no users will be able to join the server and will be told they are banned if they attempt.
-
To add a user to the allow list, edit the “allowlist.json” and restart the server if it is running.
-
If the user whose access you are trying to change has joined in the past, their access will already be saved in the JSON file.
- Tip: You can also allow certain players to join even if the server is full by setting ignoresPlayerLimit to true for that user.
-
If the user whose access you are trying to change has joined in the past, their access will already be saved in the JSON file.
- If preventing a specific user from joining is desired, remove the entry containing that user’s name and/or ID from the file.
- If allowing a specific user to join is desired, add an entry containing that user’s name and/or ID to the file in the following format.
Passcode
Important Note: Passcodes are not passwords, since they are not unique to each user. They are instead unique to each server (or at least should be!). They are viewable to admins and shared by users. For example, a classroom could use a passcode to ensure only that class can get into the server, so long as the passcode is only known to the people in the class. It's a good practice to rotate this passcode from time-to-time to ensure it remains known to only those who need it.
You can set a passcode by signing into the Dedicated Server Admin Portal either during server creation, or by selecting Edit.
However, if you prefer you can also enable it via scripting, such as by using the example tooling notebook as in the steps below:
- The second cell under the tooling/edit_server_info heading in the Dedicated Server Alternate Configuration process allows you to set a passcode that will be required to join the server.
- The third cell under the tooling/edit_server_info heading allows you to remove a passcode that you have previously set.