MATLAB Answers

Why do I receive License Manager Error -9?

34,653 views (last 30 days)
When I try to launch MATLAB, I get the following error:
ERROR: License checkout failed. Invalid host. License Manager Error -9

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 5 Jan 2021
Edited: MathWorks Support Team on 5 Jan 2021
The best way to resolve a License Manager Error -9 is by reactivating MATLAB with the activation client.
The activation client is located here:
C:\Program Files\MATLAB\R20XXx\bin\winXX\activate_matlab.exe
  • Open Finder.
  • Go to "Applications".
  • Right-click or control-click on the MATLAB application icon. (e.g.
  • Click on "Show Package Contents".
  • Open "".
The activation client is located here:
Once you have launched the MATLAB activation client:
  1. Select "Activate automatically using the internet."
  2. Log into your MathWorks account.
  3. Select the correct license.
  4. The username field should auto-populate with the correct user name. Leave it as is.
  5. Confirm the activation information.
  6. Click "finish" to complete the activation process.
  7. Restart MATLAB.
Still seeing a License Manager Error -9?
  • The username in the license file does not match 
  • The Host ID in the license file does not match
  • You have a Designated Computer MATLAB license and MATLAB is already running under a different user account on this computer.
 Confirm your Username and Host ID using the activation client:
  1. Run the activation client and select "Activate manually without using the Internet."
  2. Choose “I do not have a license file. Help me with the next steps.”
  3. Copy your Host ID and Computer Login Name.
  4. Click the back arrow 2 times and choose “Activate automatically using the Internet” then input the appropriate username.
  5. Launch MATLAB using the appropriate user account.
Activation client requires elevated privileges to run? Connection error when Activating automatically? Still seeing a License Manager Error – 9?
How do I activate MATLAB without an internet connection?


Image Analyst
Image Analyst on 2 Feb 2021 at 14:18
What is the specific "windows link" you clicked on? You forgot to tell us. Regardless, call tech support and get a live person on the phone. All installation tech support is fast and free (even for students), so do it now.
Balázs Róbert Börcsök
Balázs Róbert Börcsök on 16 Feb 2021 at 19:06
I have the same problem. After using the activation client it works just fine until next reboot. I check my username like described in and it really as the same as the local license file.
Abhimanyu Kumar
Abhimanyu Kumar on 17 Feb 2021 at 12:18
This process worked, Thanks

Sign in to comment.

More Answers (91)

Dandan Zhang
Dandan Zhang on 12 Mar 2016
Note: It's your Windows User Name rather than Microsoft Account Name.
You can determine your Windows username as follows:
  1. 1.While sitting at the host computer with press and hold the Windows key and press the letter R on your keyboard.
  2. 2.The Run box will appear.
  3. 3.In the box, type cmd and press Enter. The command prompt window will appear.
  4. 4.Type echo %username% and press Enter. (there is a space between echo and %username%)
  5. 5.Your current username will be displayed.


Tinglian Yuan
Tinglian Yuan on 12 Feb 2021 at 12:32
Exactly great answer. It is the computer username (Windows) that matters when you try to activate MATLAB. Try to fill the username as same as the Windows name.
Oscar Fabian Bernal
Oscar Fabian Bernal on 23 Feb 2021 at 3:50
Gracias, encontre la solucion

Sign in to comment.

Scott Ruffner
Scott Ruffner on 25 Feb 2017
Edited: Scott Ruffner on 25 Feb 2017
I was able to fix the error on my MacBook Pro with the advise above from Scott on the MathWorks Installation & Licensing Support team. I've added a few tips and step by step clarifications for others that may have the same issue.
I was receiving the -9 error. I'm running OS X Yosemite 10.10.5
It seems that you need to know which user on your Mac you are using. To find this out open a terminal window and type "whoami". Copy that result. You will need that at last step of the activation process.
I installed MATLAB in the /Applications folder.
In the terminal window go to wherever you installed MATLAB and find the bin sub-directory. For me this was /Applications/
In the terminal I ran the activation script again by typing "./"
Then I went through the steps "Login to MathWorks" [email/password] >> Next Selected the pre-selected license. >> Next Provide a user name/Login Name: (Paste the user name that you copied when you ran whoami above.)
Then open a new finder window go to Applications and try to run MATLAB_R2016b. It opened this time without errors hope this helps.