docs.unity.cn
    Show / Hide Table of Contents

    Configuring the licensing server

    This task is part of the end-to-end process for setting up the Unity Licensing Server.

    After you’ve downloaded the server setup file, run the setup command to create the licensing-server-config.json file and populate it with the licensing server configuration parameters you specify. Server paths shows where you can find this file on Linux and Windows servers. If you already have a licensing-server-config.json file, the setup command uses the existing configuration parameters as default values.

    Before you begin, make sure you prepare the following:

    • 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 (.pfx) format.

      Important

      Unity doesn't provide this certificate. It's the responsibility of your IT team to manage this certificate and ensure it's accepted on users' computers.

    • Configure the firewall for your network interface to allow Unity.Licensing.Client to get a license.

    • 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 setup command and choose a port that isn't free, you have to restart the setup again from the beginning and select a different port.

    • You can configure administrator access for specific IP addresses to diagnose and troubleshoot common configuration problems. However, you need to add each administrator's IP address to the administrator IP allowlist to grant access to the administration API. To access the administration API, go to: http://<SERVER-IP-ADDRESS>:<PORT>/v1/admin/status.

    The setup command also creates the following files:

    • The Services Configuration file (services-config.json). Redeploy this file on all users' computers every time you run the setup command in order for the client computers to use the new configuration.

    • The Server Registration Request file (server-registration-request.xml). This file contains machine binding information from the server. Upload this file to the Unity ID portal page to generate the server license. This file includes the following information:

      Element: Description:
      "FirstPhysicalAddress" The server's MAC address
      "Platform" The server's operating system
      "ProcessorCount" The number of processor cores on the server
      "MachineName" The name of the server

    Running the setup command

    Follow these steps to start the interactive setup from the command line:

    1. From the Linux Terminal or the Windows PowerShell, run the command that matches your operating system:

      • Linux: ./Unity.Licensing.Server setup
      • Windows: .\Unity.Licensing.Server.exe setup

        A welcome message appears in the Terminal or PowerShell window:

        Welcome 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
        
    2. Enter a name for your server.

    3. 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 y, and then set the path and password of the .pfx file where indicated.
    4. 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:
      
      Note

      This interface should have its firewalls configured so that Unity.Licensing.Client can communicate to get a license.

    5. 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]
      
      Note

      If the port you choose is already used by another application and the server fails to launch, run the setup command again from the beginning and select a different port.

    6. Configure administrator access. The licensing server can limit administrator access to admin API endpoints. These endpoints contain detailed server information and are useful for diagnosing and troubleshooting common configuration problems.

      To allow access to the server from inside the server itself and from the publicly accessible default IP address, enter y. Otherwise, enter n to manually add an administrator IP allowlist.

      Add default addresses to the Admin IP allowlist (127.0.0.1, ::1, 192.168.0.51)? [Y/n]
      List of current allow-listed admin IP addresses:
      `- 127.0.0.1
      `- ::1
      `- 192.168.0.51
      Add an additional admin IP address to the allow list? [y/N] y
      Enter admin IP address (Press Enter to skip):
      

      To define an additional administrator's IP, enter y, then enter the new IP to add to the allowlist. Otherwise, enter n.

      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
      
      - - - -
      Setup Completed!
      - - - -
      
      > Server Registration Request
      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
      
      > Services Configuration File
      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:
        ~/.config/unity3d/Unity/LicensingServer
      
    7. The setup generates a server-registration-request.xml. Review the console output and take note of the location of this file, which you need in a later step.

    8. Go to the Unity ID portal (id.unity.com).

    9. Select Organizations and select your organization.

    10. Select Subscriptions & Services and select your floating license subscription.

    11. Select Configure License Server.

    12. Select Upload server registration and upload the server-registration-request.xml file generated by the setup.

    13. Select Licenses in the left panel and expand the server you just registered, to see how many seats are assigned, if any.

    14. 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.

    The initial configuration of the server is now complete.

    Next steps

    Proceed to downloading and importing the license archive file to continue setting up your licensing server.

    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX