Show/Hide Toolbars

Licence Protector 5

Licence Protector 5 offers a network license per PC, User or floating license - see Network license - how it works. This works 'out of the box' if the the licensing is done on the workstation / Client PC because the PC or username of the Client PC is used.

 

The main difference on a server based testing is, that the server (which makes the Licence Protector 5 calls), has to provide the PC name or username. You could also use other unique criteria like IP address.

 

For a license per PC or user the only difference is, that you have to provide the pc name / user name in the call ValidateEx and set UseWindowsUser to false.

 

Example:  iRes := lic.ValidateEx(‘D1001’, ‘user name’, false, sTag); where user name must be a unique ID to identify the Client PC / user.

 

Concurrent User testing with the inbuilt feature - see Network license Per Concurrent User is not available. Implement this code sequence to get a floating license with a Server Application:

 

use module type 1 (per user)

at the server start remove all users from the module using GetEntriesOfModule, DeactivateEntry and RemoveDeactivated

if a user logs in use ValidateEx and the user ID like IP address or your application user name instead of using the windows user name - ValidateEx(‘D1001’, ‘user name’, false, sTag)

if a user logs out delete the user in the license file (DeactivateEntry followed by RemoveDeactivated)

if you are in an environment where your server informs you about disappeared clients (like session timeout) you simply can use this event to do also a log-out. Otherwise ping your client PC from time to time to get the information if the session is still valid