MATLAB Answers

Why do I receive License Manager Error -9?

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

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 29 Jul 2020
Edited: MathWorks Support Team on 29 Jul 2020
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?


LEDIA HASA on 5 Oct 2020 at 21:30
Hello there. i seem to have the same problem. i am working on ubutnu 18.04 TLS (WSL) and I have been working with matlab there until now. at some point, the matlab license don't work anymore, becouse my host Id has changed to 0000000000. I dont know how to get back my old host id. so any of these steps here aren't helping becouse the problem is always the same.
shaik mujahid
shaik mujahid on 8 Oct 2020 at 10:24
Thanks, that was an exact procedure. Done within few seconds
Colin Fraser
Colin Fraser on 14 Oct 2020 at 13:45
You'll need to somehow change that host ID on your computer. A 0000000000 host ID will not register correctly with us.
If you are still experiencing this issue, please create a service request below.
-Colin Fraser

Sign in to comment.

More Answers (72)

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.


雪莹 刘
雪莹 刘 on 22 Sep 2020 at 16:19
thank you so much!!!!!

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.


Pierluigi Claps
Pierluigi Claps on 4 Oct 2020 at 22:05
I got a "write permission error" and didn't work for me. The app was transferred from a previous mac in Catalina
Colin Fraser
Colin Fraser on 14 Oct 2020 at 13:27
It might be worth redownloading and installing solely on the Mac, rather than transferring the files.
If you are still experiencing this issue, please create a service request below.
-Colin Fraser

Sign in to comment.

Michael on 6 Sep 2014
Edited: Michael on 6 Sep 2014
Note for Linux users: when I installed MATLAB on my Manjaro OS, I was required to have 'root' as my username, rather than my actual username.
The solution to this (if you're using a terminal, which is the only way I can access MATLAB), is to open MATLAB as 'root' by entering 'sudo su' (which changes you to root), and then typing 'matlab'.
P.S. The '' marks on words and phrases like 'root', 'sudo su' and 'matlab' are written in this post just to highlight the specific terms and commands. Quotes ('') should not be included when inputting commands into the Terminal.