Floating Server Usage
Distributing software applications designed for closed networks comes with numerous obstacles.
Challenges include implementing node locking on virtual machines and activating licenses meant for devices with strict security demands, often in the absence of internet connectivity.
LicenseSpring provides a solution through a Floating License Server. This server can be set up and customized at your customers' locations, ensuring functionality even when the client application runs on a machine without internet access.
LicenseSpring's offerings encompass both a floating server tailored for private networks and a cloud-based floating license solution. The client SDK functions quite similarly in both situations.
To learn more about the processes of registering, deregistering, managing timeouts, and borrowing licenses using a cloud-based floating license, see Floating Licensing.
Floating Client Identifier
The floating client or instance identifier can be accessed through a License object by using:
string floatingClientID = license->floatingClientId();string floatingClientID = license.FloatingClientId();if let id = license.floatingClientID { ... }client_id = license.floating_client_id()
print(client_id)This floating client identifier is set during registration, within the register method shown below.
Floating Client
The FloatingClient class is used to perform requests to LicenseSpring's floating server. Within a FloatingClient object, developers are able to:
Register and unregister clients.
Borrow licenses.*
Retrieve server information.
Check whether the connection to the floating server is online.
*Only offered in C++ SDK
Registering a Client
Developers register clients with the following method:
If registration is successful, a shared pointer to the License object is returned. If unsuccessful, an exception is thrown.
Unregistering a Client
The unregister method uses the exact same parameters as register:
This Boolean result is set to true if the client was unregistered successfully.
License Borrowing
Only available in the C++ SDK, the following method allows developers to register and borrow licenses at once:
For more information about license borrowing, see Floating Licensing.
Floating Server and License Information
A helper method for checking the connection the floating server is provided within the FloatingClient object:
Using the FloatingClient object, developers are also able to access a FloatingServerInfo object with:
FloatingServerInfo consists of:
RegistrationExpiry- The floating server registration expiry in minutes.Servers- The list of floating server IP addresses available in the network.
In the .NET SDK, it is also possible to get the license information for a configured product with:
See Get license for more information.
Last updated
Was this helpful?