Is it possible to run the Network License Manager on a computer with other FlexNet applications?

48 views (last 30 days)
I have another product, in addition to MATLAB, that uses FlexNet. I would like to know if it is possible to set up the network license manager to work on the same computer.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 Feb 2019
If you have another application that uses the network license manager, you can share a single license server, or set up separate license servers for each product. It is recommended to install the network license manager as a separate service in this type of configuration. To do so, see the instructions below:
To setup the additional service, you can simply install the license manager using the normal procedure. This procedure may be found here:
Once installed, you will need to ensure that the MATLAB license server uses a different port than your existing license manager(s). The license manager for MATLAB uses port 27000 by default. If your existing license server uses the same port, you will need to change the one for MATLAB.
To change the port for the network license manager edit the license.dat file located in:
$MATLABROOT/etc ($MATLAB\flexlm for releases prior to R2010b on Windows)
(where $MATLAB is the MATLAB installation directory). The port is specified on the SERVER line of the file. For example:
SERVER my-server 001122334455 27000
Change 27000 to be an open port on the computer. Once changed, you will need to restart the MATLAB license server service.
Once complete, the network license manager service will operate independent of your other license managers.
If you are still having issues and are on windows, open up lmtools.exe and make sure you have the "LMTOOLS ignores license file path environment variables" box checked.
It is also possible to set up the license manager as a single service. This is not recommended and should only be implemented by those with a good understanding of FlexNet. To do so, follow the instructions below:
NOTE: MATLAB requires the version of the FlexNet binaries that it has been shipped with. If you are sharing your license manager, make sure that you have an up-to-date version of lmgrd. Since FlexNet is backwards compatible, this should not cause any errors with previous versions.
When setting up a single license server for multiple vendors you will need to accomplish the following steps:
1. Lock all licenses to the same Host ID.
2. Concatenate all licenses into one license file.
3. Ensure that the combined license file has only one SERVER line
4. Create separate DAEMON lines for each vendor
To add MATLAB to an existing license file, you will need to add in the license code as well as a DAEMON line. The DAEMON line for MATLAB should be:
DAEMON MLM <path to the MLM daemon binary>
DAEMON MLM "C:\Program Files\MATLAB\etc\win32\mlm.exe"
The license manager binaries for MATLAB are located on the DVD in the following locations:
Windows DVD: win32\utils\lm\win32 or win64\utils\lm\win64
Unix DVD: utils\lm\$ARCH
Where $ARCH is the architecture for your license manager (ex: glnx86, maci, etc.).

More Answers (0)


No tags entered yet.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!