Why do I receive License Manager Error -9?

48,060 views (last 30 days)
MathWorks Support Team
MathWorks Support Team on 5 Mar 2013
Answered: Yada Boru on 30 Nov 2021 at 13:16
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 9 Nov 2021 at 5:00
Edited: MathWorks Support Team on 9 Nov 2021 at 16:58
The best way to resolve a License Manager Error -9 is by reactivating MATLAB with the activation client.
License Manager Error -9 may be caused by a few different reasons depending on how MATLAB was installed and activated:
  • (Individual and Campus-Wide license only) The username in the license file does not match 
  • (Offline Activations) The Host ID in the license file does not match
  • (Designated Computer Only) MATLAB is already running under a different user account 
  • Non-static Host ID

(Individual and Campus-Wide licenses only) The username in the license file does not match 

When installing and/or activating MATLAB, the MathWorks Installer and/or Activation Client will attempt to pull the username of the user installing MATLAB to activate. If the username was changed or the username pulled is incorrect, the username in the license file will not match the username of the MATLAB user, and MATLAB will provide a License Manager Error -9.
To resolveverify the username of the MATLAB user, then reactivate MATLAB with the correct username.
Note: Usernames are case sensitive and may break with spaces.

(Offline Activations) The Host ID in the license file does not match

When activating MATLAB manually via the License Center, the Host ID, and username for Individual licenses, is required to activate the license to the machine. If the wrong Host ID was used to activate, the Host ID in the license file will not match the Host ID on the machine, and MATLAB will provide a License Manager Error -9.
To resolveverify the Host ID of the machine, and the username of the MATLAB user for Individual licenses, then reactivate MATLAB.

(Designated Computer Only) MATLAB is already running under a different user account

For Designated Computer licenses, MATLAB may only be used by one user on one user account on the machine at a time. When MATLAB is started with a Designated Computer license, it will attempt to detect any MATLAB processes on the machine. If there is a MATLAB process running under a different user account on the machine, MATLAB will provide a License Manager Error -9.
To resolve, end all MATLAB processes on different user accounts.

Non-static Host ID

For Individual and Designated Computer licenses, the Host ID activated to must not change over time or the Host ID will not match the Host ID in the license file, and MATLAB will provide a License Manager Error -9. This is common for many virtual machine configurations.
To resolve, configure your system to have a static Host ID then reactivate MATLAB.
  163 Comments
Lloydsing Morris
Lloydsing Morris on 29 Oct 2021 at 5:45
Thank you so much. This worked!

Sign in to comment.

More Answers (107)

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