MATLAB Answers

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

4,208 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
コメント済み: Muhammad Ahmad 2020 年 12 月 22 日 12:51
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: "akebono.ssc.uwo.ca"

採用された回答

MathWorks Support Team
MathWorks Support Team 2016 年 7 月 18 日
編集済み: MathWorks Support Team 2016 年 7 月 18 日
"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:
 
127.0.0.1 localhost localhost.localdomain
or
::1 localhost localhost.localdomain
To make the local hostname resolvable, add it to the end of this line. For example:
127.0.0.1 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.

  9 件のコメント

表示 6 件の古いコメント
Walter Roberson
Walter Roberson 2020 年 3 月 27 日
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?
Muhammad Ahmad
Muhammad Ahmad 2020 年 10 月 18 日
i have change the host file but still same error please help..
Colin Fraser
Colin Fraser 2020 年 10 月 28 日
@Muhammad Ahmad
If you are still experiencing this issue, please create a service request below.
-Colin Fraser

サインインしてコメントする。

その他の回答 (8 件)

junaid tariq
junaid tariq 2018 年 10 月 6 日
編集済み: Walter Roberson 2018 年 10 月 6 日
My matlab app is not working giving errors related to server which is visible in the image.

  3 件のコメント

Muhammad Hilmi
Muhammad Hilmi 2020 年 4 月 9 日
i wrong input the license
Cody Lamke
Cody Lamke 2020 年 4 月 16 日
Hello,
If you are still experiencing this issue, please contact MathWorks support:
-Cody Lamke

サインインしてコメントする。


Sandive Direckszes
Sandive Direckszes 2020 年 4 月 19 日
Help I'm experiencing licensing error 95, 378 I did everything as the guide above but still no pls help

  1 件のコメント

Walter Roberson
Walter Roberson 2020 年 4 月 19 日
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?

サインインしてコメントする。


Veena Pani
Veena Pani 2020 年 4 月 25 日
problem with activation

  0 件のコメント

サインインしてコメントする。


Veena Pani
Veena Pani 2020 年 4 月 25 日
getting error 95

  1 件のコメント

Colin Fraser
Colin Fraser 2020 年 4 月 29 日
If you are still experiencing this issue, please create a service request below.
-Colin Fraser

サインインしてコメントする。


davut sevim
davut sevim 2020 年 4 月 28 日
編集済み: Walter Roberson 2020 年 4 月 28 日
5XXXX-XXXXX-XXXXX-XXXXX-XXXXX

  1 件のコメント

Walter Roberson
Walter Roberson 2020 年 4 月 28 日
Activation keys do not have anything to do with error 95; error 95 is only about host name resolution.

サインインしてコメントする。


UMMADI BRAMHAIAH
UMMADI BRAMHAIAH 2020 年 6 月 22 日
sir i am student please provide matlab

  1 件のコメント

Walter Roberson
Walter Roberson 2020 年 6 月 22 日
Only Mathworks and authorized Redistributors are authorized to provide MATLAB. If I were to give you access to my copy of MATLAB then I would lose my license.
Error 95 has to do with network license servers being run by your organization. You need to talk to the IT people at your organization about the problem.

サインインしてコメントする。


Mostafa Mahamoud
Mostafa Mahamoud 2020 年 8 月 29 日
actvation the program please

  1 件のコメント

Walter Roberson
Walter Roberson 2020 年 8 月 29 日
Please provide more information about the difficulty you are encountering.
Note: the volunteers who answer questions here do not have access to the Mathworks license database, so we cannot provide activation keys.

サインインしてコメントする。


Zarwish Javaid
Zarwish Javaid 2020 年 12 月 21 日 22:18
what to do with this dialogue box?
and my matlab is not working even I have done the hostname thing

  8 件のコメント

表示 5 件の古いコメント
Zarwish Javaid
Zarwish Javaid 2020 年 12 月 21 日 23:09
yes I have done that replacing thing.....but can you explain in detail that which file have to be copied or replaced in which diresctory or folder....I will be thankful
Muhammad Ahmad
Muhammad Ahmad 2020 年 12 月 22 日 12:43
I actually don’t remember the exact file directory.. but i read the installation guide many times ..all details was given there, that which file is to to be replaced.
Muhammad Ahmad
Muhammad Ahmad 2020 年 12 月 22 日 12:51
Copy the libmwlmgrimpl.dylib file to "/Applications/MATLAB_R2018a.app/bin/maci64/matlab_startup_plugins/lmgrimpl/" , confirm replacement
- Activate offline using provided license_standalone.lic file or copy the license file to "/Applications/MATLAB_R2018a.app/licenses/" and run MATLAB
This was the file replacement procedure in my case. maybe its different in your case.

サインインしてコメントする。

タグ

タグが未入力です。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by