MATLAB Answers

Why do I receive License Manager Error -9?

조회 수: 49,903(최근 30일)
When I try to launch MATLAB, I get the following error:
License checkout failed. Invalid host. License Manager Error -9

채택된 답변

MathWorks Support Team
편집: MathWorks Support Team 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?

  댓글 수: 107

표시 이전 댓글 수: 104
Mark Jones
Mark Jones 약 23시간 전
Cheers, you sorted my problem on Mac within 2 seconds!
Aadil Mohammed Ranesh
Aadil Mohammed Ranesh 약 2시간 전
Thanks man, it works
Pedapudi Bharath Raja Bhoopal
thank you, it worked

댓글을 달려면 로그인하십시오.

추가 답변(70개)

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

  댓글 수: 31

표시 이전 댓글 수: 28
Colin Fraser
Colin Fraser 16 Apr 2020
If you are still experiencing this issue, please create a service request below.
-Colin Fraser
Billy Moreno
Billy Moreno 28 Aug 2020
Thanks its ok the solution
雪莹 刘
雪莹 刘 22 Sep 2020 16:19
thank you so much!!!!!

댓글을 달려면 로그인하십시오.

Scott Ruffner
Scott Ruffner 25 Feb 2017
편집: Scott Ruffner 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.

  댓글 수: 12

표시 이전 댓글 수: 9
nouha drissi
nouha drissi 11 Jun 2020
Thanks a lot you helpd me to fix my issue
Boning LIU
Boning LIU 21 Jun 2020
Thank you soooooo much for helping me!: )
Juan Manuel Aranda Lopez King
Thank you so much. Worked for me.

댓글을 달려면 로그인하십시오.

Michael 6 Sep 2014
편집: Michael 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.

  댓글 수: 17

표시 이전 댓글 수: 14
Tech Support
Tech Support 6 Jun 2018
If you are still experiencing this issue, please contact MathWorks support:
Aditya Lele
Aditya Lele 26 Nov 2018
Same as "For me, it was just needed to run matlab without root privileges. I was trying to run matlab as a root and it was failing. Without 'sudo', it worked fine."
Luis Ignacio Gómez-Jordana Martín
It work mate. I love you. You save my night, going to sleep finally XD

댓글을 달려면 로그인하십시오.

Calvin McGee III