This error will occur when the network license manager cannot access the activation information on the license file. This could be caused by the following:
- Incorrect syntax of the SERVER and DAEMON lines in the license.dat file
- Port conflict with another service or vendor
- The license file expired
- The system's clock is set incorrectly
- MLM socket connection
Incorrect syntax of the SERVER and DAEMON lines
The syntax for the SERVER and DAEMON lines is as follows:
SERVER {hostname} {HostID} 27000 {port number}
DAEMON MLM {$MATLAB}/etc/MLM
Verify that this information is accurate in your license file.
This error will also occur if your license file has wrapped INCREMENT lines for your products. To resolve this, you will need to create the appropriate line endings for your license file. In general, the license file will have line endings before each time the word "INCREMENT" appears, and line endings after each backslash "\".
For example, the following license format is invalid and would cause this issue:
INCREMENT MATLAB MLM 20 01-feb-2025 10 2DB9ABACDDEDDDF247 \
VENDOR_STRING=vi=0:at=200:lo=CN:ei=123456 HOSTID=ID=123456 \
DUP_GROUP=UH asset_info=123456 ISSUED=10-Oct-2008 SN=123456INCREMENT SIMULINK MLM 20 01-feb-2025 1 D455234ADDCCFFDFD4FFD232 \
VENDOR_STRING=vi=0:at=200:lo=CN:ei=123456 HOSTID=ID=123456 \DUP_GROUP=UH asset_info=123456 ISSUED=10-Oct-2008 SN=123456
Instead, your license file should have the following format:
INCREMENT MATLAB MLM 20 01-feb-2025 10 2DB9ABACDDEDDDF247 \
VENDOR_STRING=vi=0:at=200:lo=CN:ei=123456 HOSTID=ID=123456 \
DUP_GROUP=UH asset_info=123456 ISSUED=10-Oct-2008 SN=123456
INCREMENT SIMULINK MLM 20 01-feb-2025 1 D455234ADDCCFFDFD4FFD232 \
VENDOR_STRING=vi=0:at=200:lo=CN:ei=123456 HOSTID=ID=123456 \
DUP_GROUP=UH asset_info=123456 ISSUED=10-Oct-2008 SN=123456
Port conflict
If you have FLEXnet licenses from other vendors, check that they are not using the same port number. The port number is found on the SERVER line of the license file. If there is a conflict, change the port number in one of the license files, and make a matching change on the clients.
If you specify both lmgrd port number on the SERVER line and vendor-daemon port number on the VENDOR line they must be different.
License file expiration
Look on the INCREMENT line or the license file for the expiration date. If the license file has expired update the license file or contact the License Administrator on the license to update the license file.
How do I update the license file on the license server?
If your license has not expired:
- Make sure your machine's clock is set to the correct date and time.
- Open LMTools and on the Config Services tab verify that the license file path (second box) points to the correct license file.
- Change it if necessary and click Save Service.
- Then go to Start/Stop/Reread and click Start Server.
- Close and reopen LMTools, and check Server Status.
Once you have made the appropriate changes in the license file, you will need to restart the license manager in order for the update to occur. Once restarted, the error should not occur.
MLM Socket Connection
In the "Server Diags" tab in the LMTools, you may receive a similar error to:
MLM: No socket connection to license server manager. (-7,10015)
This error message can generate if the SERVER / DAEMON lines are not correct or if the license file (license.dat) is not up to date. To make sure the SERVER / DAEMON lines are correct, please refer to the "Incorrect syntax of the SERVER and DAEMON lines" in this article.
You can find more information here:
Why do I receive "MLM: No socket connection to license server manager. (-7,10015)"?