LexFloatServer
LexFloatServer is the licensing server software that leases floating licenses to your app. It is usually installed on any computer in your customer's local network. In case you have multiple products, each product will require its own instance of LexFloatServer.
LexFloatServer is designed to be robust, low memory and very fast. Hence, it can even be installed on any old machine connected to the local network.
LexFloatServer has VS2015 runtime
dependency on Windows. Make sure dependency is installed before running the server.
Downloading the LexFloatServer
LexFloatServer can be downloaded from the downloads page in the dashboard. Simply login to your Cryptlex account and download LexFloatServer binary for Windows, macOS or Linux:
Configuring the LexFloatServer
LexFloatServer uses a simple YAML-based text file as its config file. It expects a config.yml
file to be in the same directory as LexFloatServer. If the config file is in some other directory it can be passed using the "-c" option.
The config is loaded at the start of the server. Any changes to the config file will be ignored until the server is restarted.
Starting LexFloatServer in terminal
For testing purposes, you can easily run the LexFloatServer in the terminal (command prompt). To start the server simply pass the "-s" option:
You need admin rights to run the LexFloatServer.
Activating the LexFloatServer
LexFloatServer needs to be activated using a license key of type "on-premise-floating" before it can be used. It can be activated using the dashboard, command-line options or Web API.
Using the Dashboard
LexFloatServer provides a web-based local dashboard that can be used to activate the server license.
Online activation
Open the dashboard using http://localhost:8090
URL in your browser. Click the Settings page icon and put in the license key to activate the server
Offline activation
To activate offline click on the "SWITCH TO OFFLINE ACTIVATION" option on the Settings page. Put in the license key to generate the offline activation request file.
After generating the offline response from the Cryptlex admin dashboard for this request, paste the offline response file contents in the input to activate the server:
Using command-line options
Online activation
To activate use "-a" option along with the license key and product file path (if not set in the config.yml file):
Offline activation
To activate offline use "-g" option to generate the offline activation request:
After generating the offline response from the admin dashboard, pass it along with "-a" option to activate the server:
Using Web API
LexFloatServer exposes a few API endpoints which can also be used to activate the server.
Online activation
Send a POST request to the /api/server/activate API endpoint with a JSON request body containing the license key and optionally the activation metadata.
Activate server
POST
http://localhost:8090/api/server/activate
Request Body
Name | Type | Description |
---|---|---|
licenseKey | string | License key to activate the server. |
metadata | array | Activation metadata. |
Offline activation
Send a POST request to the /api/server/offline-activation-request API endpoint with a JSON request body containing the license key and optionally the activation metadata.
Generate offline activation request
POST
http://localhost:8090/api/server/offline-activation-request
Request Body
Name | Type | Description |
---|---|---|
licenseKey | string | License key to activate the server. |
metadata | array | Activation metadata. |
After generating the offline response from the admin dashboard, send a POST request to the /api/server/offline-activate API endpoint with a JSON request body containing the license key and the offline response.
Activate server offline
POST
http://localhost:8090/api/server/offline-activate
Request Body
Name | Type | Description |
---|---|---|
licenseKey | string | License key to activate the server. |
offlineResponse | string | Offline activation response. |
Installing LexFloatServer on Windows
LexFloatServer runs as a service on Windows. To install it as a service simply pass the "-i" option along with the service name and optionally a service display name which is displayed in the Windows Services Manager:
After installation, it is set to start with the computer and run silently in the background.
Stop/Start LexFloatServer on Windows
To stop or start the server from the command line you need the "service name". If the service name was not passed during installation then it defaults to lexfloatserver-productId
(where product id is the id of your product):
Uninstalling LexFloatServer on Windows
To uninstall simply pass "-d" option to deactivate the server license and then "-u" option to remove the service:
Installing LexFloatServer on Linux
LexFloatServer can run as a Systemd, Upstart or SysV service on Linux. To install it as a service simply pass the "-i" option along with the service name:
After installation, it is set to start with the computer and run silently in the background.
Stop/Start LexFloatServer on Linux
To stop or start the server from the command line, you need the service name. If the service name was not passed during installation then it defaults to lexfloatserver.productId
(where product id is the id of your product):
Uninstalling LexFloatServer on Linux
To uninstall simply pass "-d" option to deactivate and then "-u" option to remove the daemon:
Installing LexFloatServer on macOS
LexFloatServer runs as a launchd daemon on macOS. To install it as a service simply pass the "-i" option along with the service name:
After installation, it is set to start with the computer and run silently in the background.
Stop/Start LexFloatServer on macOS
To stop or start the server from the command line, you need the service name. If the service name was not passed during installation then it defaults to com.lexfloatserver.productId
(where product id is the id of your product):
Uninstalling LexFloatServer on macOS
To uninstall simply pass "-d" option to deactivate and then "-u" option to remove the daemon:
Getting server stats
LexFloatServer exposes a stats API endpoint that can be used to get the current stats of the server.
Gets the server stats
GET
http://localhost:8090/api/server/stats
Gets the current server stats
Getting server license info
LexFloatServer exposes a license info API endpoint that can be used to get the information related to the license used to activate the LexFloatServer.
Gets the license info
GET
http://localhost:8090/api/server/license-info
Gets the license info of the license used to activate the LexFloatServer
Getting the list of floating licenses
LexFloatServer exposes a floating-licenses API endpoint that can be used to get the leased floating licenses.
Gets the list of floating licenses
GET
http://localhost:8090/api/floating-licenses
Gets the current server stats
Getting server license meter attributes
LexFloatServer exposes a license meter attributes API endpoint that can be used to get the list of all the meter attributes of the license used to activate the LexFloatServer.
Gets the list of license meter attributes
GET
http://localhost:8090/api/server/license-meter-attributes
Gets the list of meter attributes of the license used to activate the LexFloatServer
Last updated