Configure the server (version 2.0 or later)
Run the setup to configure version 2.0 or later of the Unity Licensing Server.
Read time 1 minuteLast updated a day ago
Configuring the server is part of the end-to-end process for setting up the Unity Licensing Server.
Configuration overview
You'll follow two procedures to configure your licensing server.- In the first procedure, you'll run the command on your licensing server. The
setupcommand creates three files:setup- The licensing server configuration file (), which stores the licensing server configuration parameters you specify. If you reconfigure the server, the
licensing-server-config.jsoncommand reads this file and loads the stored configuration parameters as default values.setup - The services configuration file (), which you'll deploy to all client computers after you configure the server or reconfigure it.
services-config.json - The server registration request file (), which contains machine binding information from the server. You'll upload this file in the second procedure, to register the server.
server-registration-request.xml
- The licensing server configuration file (
- In the second procedure, you'll register the server and manage seats on the Unity ID portal. You'll register the server by uploading the XML file that was generated by the command. This file includes the following information:
setup
Element | Description |
|---|---|
| The server's MAC address |
| The server's operating system |
| The number of processor cores on the server |
| The name of the server |
Before you begin
Make sure you prepare the following:- Download the server setup file.
- Decide which protocol (HTTP or HTTPS) your licensing server will use.
- If you use the HTTPS protocol, make sure you have a server certificate in the Personal Information Exchange Format () format.
.pfx - Configure the firewall for your network interface to allow to get a license.
Unity.Licensing.Client - Determine which port to use to allow client connections. Make sure that the port you choose isn't already used by another application. If you run the command and choose a port that isn't free, you have to restart the setup again from the beginning and select a different port.
setup
Run the setup command
Follow these steps to start the interactive setup from the command line:-
Run the command that matches your operating system:
- Linux: Open the Linux Terminal and run
sudo ./Unity.Licensing.Server setup- Windows: Open the Windows PowerShell as administrator and run
A welcome message appears in the Terminal or PowerShell window:.\Unity.Licensing.Server.exe setupWelcome to Unity Licensing Server setup command line interface. This setup will help you configure your license server and generate server registration request file. Enter the server name (e.g. LicenseServer): [DESKTOP] TestServer - Enter a name for your server.
-
Set which protocol (HTTP or HTTPS) your licensing server will use:
Do you want the licensing server to use HTTPS? [Y/n] Enter path to the certificate PFX file (Press Enter to skip): Enter the PFX password for "httpscertificate.pfx":- If you don't have a server certificate and want to skip this step, enter .
n - If you have a server certificate, enter , and then set the path and password of the
yfile where indicated..pfx
- If you don't have a server certificate and want to skip this step, enter
-
Enter the index number of the network interface where the licensing server will provide service:
List of available network interfaces on this host - [1] en0 (8C:85:90:CA:72:DC) 192.168.0.51 - [2] gpd0 (02:50:41:00:01:01) 10.1.4 2228 Enter the index number of the network interface which server will operate on:
-
Enter the port number where you want the clients to connect. To avoid port conflicts, use a port outside the known range, specifying a four-digit or five-digit number:
Enter server's listening port number (between 0 and 65535): [80]
- Configure administrator access.
- The licensing server can limit administrator access to the Licensing Server Dashboard and the API endpoints. These tools contain detailed server information and are useful for diagnosing and troubleshooting common configuration problems.
admin - Configure administrator access by setting a password for the username. Remember this password. All users who want access to administrator tools will use these credentials.
admin
Review the console output and take note of the location of theCredentials are required to access the administration dashboard and API. The administrator username is "admin". Create a password for "admin" (8-12 characters): ******** Confirm the password for "admin": ********
server-registration-request.xmlSample output
When the setup successfully completes, the Terminal or PowerShell window displays output like the following:Generating signing key... Done Generating server configuration ...Done Generating services configuration ...Done Reloading configuration... Done Generating server registration request file... Done Setting up file permissions... Done - - - - Setup Completed! - - - - <Note> Server Registration Request </Note> Please go to Unity ID portal -> Organizations -> [Organization Name] -> Subscriptions & Services -> [Floating Subscription] -> Configure License Server, upload server-registration-request.xml, and follow the instructions to receive a compressed license archive file. File to upload: /home/adminuser/server-registration-request.xml <Note> Services Configuration File </Note> Generated services-config.json file must be copied to the following location on all end user computer in order to enable floating licensing: - Windows: %PROGRAMDATA%\Unity\config\ - MacOS: /Library/Application Support/Unity/config/ - Linux: /usr/share/unity3d/config/ File to copy: /home/adminuser/services-config.json WARNING: Please make sure to backup the following directory as it contains essential data for operating the licensing server: ... [Path varies by server version and operating system]
Register the server and manage seats
Registering the licensing server on the Unity ID portal is a one-time operation. Follow these steps to register the server and manage seats:- Go to the Unity ID portal (id.unity.com).
- Select Organizations and select your organization.
- Select Subscriptions & Services and select your floating license subscription.
- Select Configure License Server.
- Select Upload server registration and upload the file generated by the setup.
server-registration-request.xml - Select Licenses in the left panel and expand the server you just registered, to view how many seats are assigned, if any.
- If you haven't assigned seats to this license yet, or if you want to add more seats, select Manage seats. Enter a value and select Save.