MATLAB Answers

Why do I receive "License Manager Error -95"?

6,120 views (last 30 days)
I have trouble starting the license manager for MATLAB on MAC OS X, Linux, or any other computer using dynamic hostnames. I would like to know what the hostname should be in the SERVER line of my license.dat file. I receive the following errors when I try to manually start the license manager:
Thu Oct 10 09:48:06 EDT 2002 LM_LOGFILE (last 2 lines)
146 9:47:39 (lmgrd)
147 9:47:39 (lmgrd) Unknown host: akebono.local.
The log file on the server says:
  ERROR: 13:29:35 (lmgrd) Shutting down MLM 13:29:36 (lmgrd) Can't connect to license server. Shutdown MLM failed. 13:29:36 (lmgrd) Cannot find SERVER hostname in network database (-14,7) 13:29:36 (MLM) daemon shutdown requested - shutting down ~~ 9:35:08 (lmgrd) "akebono.local.": Not a valid server hostname, exiting. 9:35:08 (lmgrd) Valid server hosts are: ""

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 Jul 2016
Edited: MathWorks Support Team on 18 Jul 2016
"License Manager Error -95" indicates that MATLAB cannot resolve the hostname of the computer that is running the license manager.
This issue can occur even if the license manager is running.
To verify that the license file contains a resolvable hostname, open the license file in a text editor. The license file location varies depending upon operating system and version:
Windows: C:\Program Files\MATLAB\R20***\licenses\network.lic
Linux: /usr/local/MATLAB/R20***/licenses/network.lic
macOS: /Applications/MATLAB_R20***.app/licenses/network.lic
In the license file will be a line that starts with the word SERVER followed by the hostname of the license server or the IP address of the license server. Generally this issue occurs when there is a hostname present and that name is not resolvable.
For local license managers, you may also see the term "this_host". This means that the license manager will use the current hostname. This hostname can be retrieved by running the command "hostname" from a terminal or command prompt.
To confirm that the hostname is resolvable: * Open command prompt or terminal * Run the following command (replace "hostname" with hostname of license server)
ping hostname
If the output of the command is "unknown host", MATLAB will not be able to connect to the license manager. You will need to change the hostname listed on the SERVER line of the license file, or use the IP address of the license server.
If the license manager is running locally, you can resolve this issue by making the hostname resolvable. To do so, you can modify the system's host file. Please check with your IT department before modifying your hosts file.
C:\Windows\system32\drivers\etc\hosts (Windows)
/etc/hosts (Linux/Mac)
To make the hostname resolvable, add it to the loopback address line. Generally this line ends with the value localhost or localhost.localdomain. For example, you should see a line with the following: localhost localhost.localdomain
::1 localhost localhost.localdomain
To make the local hostname resolvable, add it to the end of this line. For example: localhost localhost.localdomain john-pc
Once added, if you restart the local license manager, you should be able to start MATLAB. If the license manager is not running locally contact your network administrator for assistance with ensuring that the license server machine is resolvable.


Show 4 older comments
Colin Fraser
Colin Fraser on 10 Jul 2019
@mohammed durvesh
If you need further support, open up a support ticket with us.
erbold baterdene
erbold baterdene on 27 Mar 2020 at 7:17
"License Manager Error -95 matlaw cannot working
Walter Roberson
Walter Roberson on 27 Mar 2020 at 17:58
erbold baterdene were you able to find your network license file, and see which host name was configured there for the license server? Were you able to ping that host? Were you able to edit the hosts file to add an entry mapping the host name to its IP address?

Sign in to comment.

More Answers (1)

junaid tariq
junaid tariq on 6 Oct 2018
Edited: Walter Roberson on 6 Oct 2018
My matlab app is not working giving errors related to server which is visible in the image.

Sign in to answer this question.


No tags entered yet.