Network or floating licensing allows a protected software application to used by multiple users using the same license but with a limit of how many can do so concurrently. One of the biggest advantages of using network licensing with LicenseSpot is that you don’t need to deploy a license server but LicenseSpot already provides the server.
The LicenseSpot Framework already provides the necessary methods to use network licensing. The CheckIn() and CheckOut() methods will automatically communicate with the server and verify if a license can be granted or no to the customer.
Check in out a connection
Once communication is is established with LicenseSpot, a request for a connection is made in LicenseSpot to allow the user to use the application. This process will verify that there are available connections left in the pool and if there isn’t then authorization is denied and the check out process fails. If it fails, the user must for another user to release their connection so they can request a new one.
Each connection or authorization has a timeout that you can configure on the Network limit when setting up a license. The timeout period starts counting from the time the license is checked out and a connection is assigned to the user. After the timeout has passed, the connection will be revoked automatically by LicenseSpot. If you want to keep the connection alive while the user uses the application, make sure to call the Heartbeat() method on the LicenseSpot Framework to extend the timeout period.
To validate that the network license is still valid and that it hasn’t timed out, use the IsGenuineEx() method on the LicenseSpot Framework. This will check against the LicenseSpot server that the license and connection is still valid. You should do this through out critical areas of your application.
To configure network licensing, just add the network limit to a license. Generally, you’ll also add the activation limit to allow the license to be activated and be able to automatically download the license file.