Background
The method for licensing a single-user client PC saves client PC license settings to the Windows profile data of the signed in user, so license settings are saved on a per-user basis.
In cases where the exact number or identity of PC users is not predetermined, such as in a university computer lab, it is impractical to license users individually in this manner. Another use-case for this method is when FlexSim Software is automatically pushed or deployed to client PCs. Having the licensing as part of the deployment is useful.
For this mult-user method we'll use a license file on the client PC to license FlexSim software generally for any user of the PC.
Use a license file
Create a plaintext license file
On the client PC create a plaintext license file named flexsim.lic with the following 2 lines (exclude any line numbers):
SERVER 127.0.0.1 ANY 26914 USE_SERVER
If your Windows settings do not show file extensions, it is possible that your flexsim.lic license file is actually named flexsim.lic.txt, which will not work. Be sure to show file extensions and make sure your license file ends with the .lic file extension. The actual name of the file is not important (it could be helloWorld.lic, for instance), but it needs to end in .lic.
Modify
On the client PC, modify your new license file with the following changes:
- On line 1 change "127.0.0.1" to the IP address or fully qualified domain name of your license server.
- If you modified your license server with custom port numbers, on line 1 replace the default port 26914 with your custom port number.
Install
With FlexSim software installed on a client PC, your new license file should be copied into FlexSim’s installation directory in the following location:
C:\Program Files\FlexSim <version>\program\
Your exact folder path could differ based on custom installation locations or FlexSim version, but it should be placed into FlexSim’s program\ folder.
Multiple license servers?
If your FlexSim licenses/seats are spread across multiple license servers, you can configure your client software to try to pull a license from any of your multiple license servers. Simply create a new license file for each possible license server and save each to the same program\ folder. In this scenario, in your program\ folder you would have multiple license files listed, like this:
- flexsim1.lic
- flexsim2.lic
- flexsim3.lic
- etc.
Each license file should reference a different license server and its port number.
Next
Check out the next article to learn how to verify that your client PC is licensed, and what to do if it isn't: License Server - Verify client PC licensing.