Why do I get License Manager Error -96?

7,297 次查看(过去 30 天)
Why do I get the following error? 
ERROR: License checkout failed. Server node is down or not responding. License Manager Error -96

采纳的回答

MathWorks Support Team
MathWorks Support Team 2023-4-30,4:00
编辑:MathWorks Support Team 2022-10-27
This error message indicates that there is a problem resolving the hostname of the license manager machine. The license server's hostname must be resolvable for MATLAB to connect to it. 
This article will provide information on:
  • How to test the Hostname Resolution
  • Ping Failed Possible Solutions
  • Ping Successful Possible Solution

How to test the Hostname Resolution

Note: If you are working remotely and your organization requires a VPN, please ensure you are connected to the VPN, then attempt to start MATLAB before continuing.
To test the hostname, we need to use the ping application, which is a command line utility:
  • On Windows 10, press the Windows key to invoke a global search, and then type in "cmd" to open Command Prompt.
  • On Mac OS X, launch the application "Terminal.app," located in the /Applications/Utilities folder.
  • On Linux distributions, launch Terminal.
After launching the command line interface, enter this command:
ping <hostname>
where <hostname> is the hostname of the license server as it appears on the SERVER line of your license file. The license file is named network.lic and is found under $MATLAB/licenses where $MATLAB is your root MATLAB installation directory.
If the output of the above command comes back as 'unreachable' or 'unresolvable', then proceed to the Ping Failed Possible Solutions below.  If the ping is successful and you are still unable to connect, proceed to the Ping Successful Possible Solution below. 

Ping Failed Possible Solutions

1) The best way to resolve the network connection issue is to contact your System Administrator.
2) Alternatively, if you are unable to resolve the hostname of the license server, but can ping the IP Address of the license server, you can replace hostname in the SERVER line of your local license with the IP Address of the license server. To do so:
  1. Navigate to $MATLAB/licenses on your machine.
  2. Open network.lic in a text editor e.g. Notepad, Notepad++
  3. In the SERVER line, the second item is the hostname. Replace this with the IP address.
  4. Save the file and launch MATLAB to test if MATLAB was able to connect to the license server.
NOTE: If your license server does not have a static IP, then this workaround will stop working when the DHCP lease is updated. You should contact your license administrator to try and resolve the issue with hostname resolution if your license server does not have a static IP.

Ping Successful Possible Solution

If MATLAB is still unable to connect to the license server even though you can ping it successfully, there may be one or more firewalls blocking the connection between the MATLAB client and the MATLAB license server. The network license manager communicates on two ports that must be opened through the firewall(s). If there is a firewall running, contact your System Administrator to open the necessary ports in the firewall.
For more information about the port the license manager uses, see the following Article:
For more information about checking your ports::
  13 个评论
Naif Alsalem
Naif Alsalem 2020-3-25
Thank you very much! I just pinged my hostname and got the echo back. Then I modified my netowrk.lic file by replacing the host name with the ID address of the hostname and saved the file.
I launched it again and it worked just fantasticily

请先登录,再进行评论。

更多回答(23 个)

Dharmeshkumar Patadiya
I am using Matlab R2014a on Ubuntu 12.04 machine in my laboratory. Matlab is provided in my laboratory through institute's central computing department. Matlab was working fine on my computer but it suddenly stopped functioning. I received following error message.
$ matlab
License checkout failed.
License Manager Error -96
MATLAB is unable to connect to the license server.
Make sure that the MATLAB client machine can communicate with the hostname listed in the SERVER line
of the license file, and that the port listed in the SERVER line is not blocked by a firewall.
Troubleshoot this issue by visiting:
http://www.mathworks.com/support/lme/R2014a/96
Diagnostic Information:
Feature: MATLAB
License path: /home/dharmesh/.matlab/R2014a_licenses:/usr/local/MATLAB/R2014a/licenses/license.dat:/usr/local/ MATL
AB/R2014a/licenses/network.lic
Licensing error: -96,7. System Error: 2
$
I visited the link mentioned in error message. I opened network.lic file. It reads
SERVER sunlx2_17 00E0815E826E 27000
USE_SERVER
I followed the procedure suggested:
$ ping sunlx2_17
ping: unknown host sunlx2_17
$
It is working fine with other computers in my laboratory.
  3 个评论
Colin Fraser
Colin Fraser 2020-12-9
If you are still experiencing this issue, please create a service request below.
-Colin Fraser

请先登录,再进行评论。


Christopher Andrews
The ping test just means you can get tot he the server, you will also need to test the port access. On a Windows computer you can use the Telnet Client to test this (this might need to installed, see https://technet.microsoft.com/en-us/library/cc771275(v=ws.10).aspx) then you need to use the license server name and port from the license file you have been given. Start a cmd window and type:
telnet servername serverport
For example:
telnet matlablicensing 27000
You will either get:
  • A blank screen - this is a successful connection, no firewalls in the way
  • "Connecting To matlablicensing ...Could not open connection to the host, on port 27000: Connect failed" - you have the wrong port or there is a firewall blocking you.
Even after getting the firewall port working, you could still get the -96 error. The Flexera licensing software that MathWorks uses is very picky. The following line from the MathWorks answer is super important:
"2. Open network.lic with WordPad (Windows) or TextEdit (Mac). Do not open the file with Notepad."
Notepad and Wordpad use different kinds of line breaks. I had to open my network.lic file on my client with Wordpad and then save it. I made no changes to the contents. Suddenly MatLab works correctly and can talk to the license server. May be MathWorks could generate a better error message. It would be trivial for them to code a ping check, port check and line break check of the license file. Also may be talk to Flexera about this issue and
  2 个评论
Walter Roberson
Walter Roberson 2022-6-1
The error message in question only appears in the circumstance that the license file refers to a licence server by host name, but MATLAB cannot find an address for the host. In this combination of circumstances, MATLAB cannot tell what the ip address of the host is.
ping does not have any hostname resolution that is not available to the system calls that MATLAB uses for resolution, so doing a ping would not help, and doing a traceroute would not help.
The only thing that might help is doing an nslookup and showing the results — results that are notoriously difficult for beginners to interpret.

请先登录,再进行评论。


Juan Britz
Juan Britz 2016-9-29
编辑:Juan Britz 2016-9-29
I am using Windows 10, and have access to an academic license server. I originally got this error and resolved it as follows:
  1. Move the license.lic or license.dat file into the %Matlab\licenses folder.
  2. This file should be with the network.lic file.
  3. I pinged the server address, (ex. RE412251) and got no response
  4. Contacted admin and got the actual IP address of the server, (ex. 146.000.000.01)
  5. Pinged the server IP instead, got a response
  6. Changed server address in network.lic and license.lic files to IP address (RE412251 to 146.000 etc.)
This seemed to work, which may be mean it's a windows thing or perhaps it was just my network being fickle.

Emad Eiisa
Emad Eiisa 2020-5-19
编辑:Emad Eiisa 2020-5-19
I got the same error I just had to connect to my school VPN since the license bought under school name, so if you have the same situation log in to the owner VPN and you will be good to go.

randy mada
randy mada 2015-1-8
I am using Matlab R2013a on windows 7. I use matlab for data processing of my research focuses on fuzzy logic and its application to the determination of the amount. In the install process goes well but when it finishes installing and want me to open, a message like above.
License checkout failed.
License Manager Error -96
MATLAB is unable to connect to the license server.
Make sure that the MATLAB client machine can communicate with the hostname listed in the SERVER line
of the license file, and that the port listed in the SERVER line is not blocked by a firewall.
Troubleshoot this issue by visiting:
http://www.mathworks.com/support/lme/R2014a/96
Diagnostic Information:
Feature: MATLAB
License path: /home/dharmesh/.matlab/R2014a_licenses:/usr/local/MATLAB/R2014a/licenses/license.dat:/usr/local/ MATL
AB/R2014a/licenses/network.lic
Licensing error: -96,7. System Error: 2
Like Dharmeshkumar Patadiya, I visited the link mentioned in error message. I opened network.lic file. It reads
SERVER sunlx2_17 00E0815E826E 27000
USE_SERVER
I followed the procedure suggested:
ping sunlx2_17
and when i clicking the enter emerging
ping request could not find host sunlx2_17. Please check the name and try again.
I tried to find another solution, and I get the following ways:
I tried to follow the command and the response I get is:
please help me...

Ricardo Terini
Ricardo Terini 2016-3-3
I am trying to use Mathlab R2015a-win64, but I am having troubles with licence.
I tried to use HOST adress from network.lic file, like explained before. Image shows what I get...
So, what can I do now ?

Mukesh Jadhav
Mukesh Jadhav 2016-10-9
your matlab might be instolled on server if their are comes on clients , restart server to solve the problem. otherwise reinstolled matlab on client, make sure that you not use creak version of matlab

Awik Dhar
Awik Dhar 2019-5-16
编辑:MathWorks Support Team 2019-6-18
I used a guide to edit the 'hosts' file in C:\WINDOWS\System32\drivers\etc\hosts
Added the line : 10.0.137.114 WIN-M5CNITGRVDB at the end
Could be different for you.
It works now.

ayudita ardila
ayudita ardila 2020-4-30
licence manager error-96
  1 个评论
Walter Roberson
Walter Roberson 2020-4-30
The reasons are explained above, along with debugging steps and solutions. What did you find when you used the debugging steps described?

请先登录,再进行评论。


Robert Plemmons
Robert Plemmons 2020-9-28
VPN needs to be updated on my computer.

BHULI DHAKER
BHULI DHAKER 2020-10-31
Error using ==> open at 164 invalid figure file format

Sabelo Mthembu
Sabelo Mthembu 2020-12-12
Matlab doesnt wanna open it say troubleshoot licence

RAMKHELAVAN KANAUJIYA
mathwork support
  1 个评论
Walter Roberson
Walter Roberson 2021-2-17
This is not an official support venue. You should contact Mathworks Support for free license assistance.

请先登录,再进行评论。


Andy Turner
Andy Turner 2021-9-15
Just to add some help. While im relatively new to linux we installed the lmtools onto a centos7 server. We initially got a -96 error on the initial machine we installed MatLab. I installed it onto my own workstation to test (im a sys admin so didnt actually need it!). I got a -15 error with slightly different text. The fix for us was DNS name resolution. While we assumed our server was called (for example "centos") the DNS resolution was not dynamic so after speaking to our network admin he informed me that the server had a different name so we had an addtitional dns entry to line up with the licence file. Ironically when we tried to switch to the ip in the licence config file that didnt work. Hope this helps someone out there...

Mikhail Ostrovskiy
Mikhail Ostrovskiy 2021-9-23
License checkout failed.

Nehal Shukla
Nehal Shukla 2021-12-15
Matlab is not opening it says troubleshoot license

Trevor Williams
Trevor Williams 2022-2-2
Just installed malab on a mac running 11.6.2 . It will not connect. Gives error code 96, 7 system error 2. The same error whether the machine is on Nasa Goddard VPN or just my local network.

Dwayne
Dwayne 2022-9-29
I am a student
  1 个评论
Walter Roberson
Walter Roberson 2022-9-29
You will need to get the IT people of your university to assist you.
  • they might need to update the license file on your machine to indicate a different license server
  • they might need to update an environment variable on your machine to indicate a different license server or different license file
  • they might need to fix a problem their infrastructure that is interfering with mapping host names to IP addresses
  • they might need to unblock firewall entries on your system that are interfering with mapping host names to IP addresses

请先登录,再进行评论。


shiva rama krishna
shiva rama krishna 2022-10-14
License checkout failed. Server node is down or not responding. License Manager Error -96

shiva rama krishna
shiva rama krishna 2022-10-14
$ matlab
License checkout failed.
License Manager Error -96
MATLAB is unable to connect to the license server.
Make sure that the MATLAB client machine can communicate with the hostname listed in the SERVER line
of the license file, and that the port listed in the SERVER line is not blocked by a firewall.
Troubleshoot this issue by visiting:
http://www.mathworks.com/support/lme/R2014a/96
Diagnostic Information:
Feature: MATLAB
License path: /home/dharmesh/.matlab/R2014a_licenses:/usr/local/MATLAB/R2014a/licenses/license.dat:/usr/local/ MATL
AB/R2014a/licenses/network.lic
Licensing error: -96,7. System Error: 2
$
  1 个评论
Walter Roberson
Walter Roberson 2022-10-14
Look for license files in
  • /home/dharmesh/.matlab/R2014a_licenses/
  • /usr/local/MATLAB/R2014a/licenses/license.dat
  • /usr/local/MATLAB/R2014a/licenses/network.lic
The first one that exists in that sequence refers to a network license server. For the particular error message you report, typically it would be the network.lic file that would be referred to.
The license file that is being found has a SERVER= entry that probably has a server name. However, for that error message, typically the problem is that the server name cannot be resolved to an IP address, but there are other possibilities:
  • the SERVER entry might refer to a bad or incomplete name. For example, it might refer to one_ring.asd when it needed to refer to one_ring.asd.sauron.com . The name on the SERVER line should either have no periods or else it should be the full name of the host
  • the DNS infrastructure might temporarily be having problems resolving the name to an IP address
  • the name being referred to might be the old name for a system that was renamed and either the IT people forgot to add a CNAME entry or else the renaming was long enough ago that they assumed that everyone was updated by now
  • the name being referred to might have been name of a previous license server, with them now using a different server, but your license file did not get updated
  • DNS resolution might perhaps be fine, and it might be referring to the right server name, but there might be a firewall blocking the connection
  • Similar to the previous, but possibly you are trying to connect from off-campus and you need to create a VPN connection to connect to the license server
  • Or, every once in a while you see this error message when using cracked MATLAB software (though other error messages are more common.)
Most of the time you end up needing to get assistance from IT people to solve this problem -- but sometimes fixing up the server name in the license file can end up being easy if you know something about the IT infrastructure.

请先登录,再进行评论。


Aqa Shirin
Aqa Shirin 2022-10-19
Please I am one of the engineering student I wanna install the mathlab program But need the license
  2 个评论
osman mohammed
osman mohammed 2023-1-17
my name is osman mohammed from The Uk i am studyig at coventry university

请先登录,再进行评论。


Fekade
Fekade 2022-12-14
matlab2022b linsense key

osman mohammed
osman mohammed 2023-1-17
i need matlab

类别

Find more on Manage Products in Help Center and File Exchange

标签

尚未输入任何标签。

产品

Community Treasure Hunt

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

Start Hunting!

Translated by