MATLAB Answers

3

Why do I receive License Manager Error -96?

Asked by MathWorks Support Team on 20 Mar 2013
Latest activity Commented on by Walter Roberson
on 8 Nov 2019 at 22:01
I would like to know why I receive the error:
License checkout failed. Server node is down or not responding. License Manager Error -96

8 Answers

Answer by MathWorks Support Team on 7 Mar 2019
Edited by MathWorks Support Team on 7 Mar 2019
 Accepted Answer

This error message usually 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. To test this, we need to use the ping application, which is a command line utility:
- On Windows 8, 8.1, or 10, press the Windows key to invoke a global search, and then enter the command "cmd".
- On Windows Vista or 7, enter the command "cmd" into the "Search programs and files" prompt located at the bottom of the Start menu.
- On Windows XP, enter the command "cmd" into a Run prompt, which is accessed from the Start menu.
- On Mac OS X, launch the application "Terminal.app," located in the /Applications/Utilities folder.
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.
For version R2008a or later, 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 contact your System Administrator and have them address this issue. 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 with WordPad (Windows) or TextEdit (Mac). Do not open the file with 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.
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:
What ports does the Network License Manager use, and how can I set those ports?
For more information about checking your ports, see the Article:
How can I check if the ports between Network License Manager and client are blocked?

  11 Comments

I found that modifying the network.lic file somewhere else and then replacing the one in the licenses folder works.
屏幕快照 2019-11-08 下午9.57.51.png
I was doing exactly what tha answer suggested,but it dose not work.
ping matlab.laib.polito.it
with no < or series of zeros or 1700

Sign in to comment.


Answer by Dharmeshkumar Patadiya on 2 Oct 2014

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.

  1 Comment

I came to know from one of my institute senior that I have to do some change in network.lic file. He suggested me to change host name (here it is sunlx2_17) to its IP address in network.lic file. It is working now.
Thank you.

Sign in to comment.


Answer by Juan Britz on 29 Sep 2016
Edited by Juan Britz on 29 Sep 2016

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.

  2 Comments

how to ping the server address,i finished first two steps

Sign in to comment.


Answer by randy mada on 8 Jan 2015

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...

  0 Comments

Sign in to comment.


Answer by Christopher Andrews on 16 Feb 2015

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

  0 Comments

Sign in to comment.


Answer by Ricardo Terini on 3 Mar 2016

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 ?

  1 Comment

Image was not enclosed

Sign in to comment.


Answer by Mukesh Jadhav on 9 Oct 2016

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

  0 Comments

Sign in to comment.


Answer by Awik Dhar on 16 May 2019
Edited by MathWorks Support Team on 18 Jun 2019

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.

  0 Comments

Sign in to comment.