Why do I receive License Manager Error -9?

48,840 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 28 Mar 2022
Edited: MathWorks Support Team on 28 Apr 2022
License Manager Error -9 may be caused by various 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 
  • Machine has a non-static Host ID

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

When installing or activating MATLAB, the MathWorks product installer or the activation client attempts to retrieve the username of the user installing MATLAB to activate. If the username was changed or the username retrieved is incorrect, the username in the license file will not match the username of the MATLAB user, and MATLAB issues License Manager Error -9.
To determine the username in the current session:
To resolve, verify the username of the MATLAB user, and reactivate MATLAB with the correct username.
Note: Usernames are case sensitive and may not be recognized if they contain spaces.

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

When you activate MATLAB manually using the License Center, you must provide the Host ID, and for Individual Licenses, the username, 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 issues License Manager Error -9.
To resolve, verify the Host ID of the machine, and, for Individual licenses, the username of the MATLAB user, then reactivate MATLAB.
 

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

With 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 attempts to detect any MATLAB processes already running on the machine. If there is a MATLAB process running under a different user account on the same machine, MATLAB issues License Manager Error -9.
To resolve, end all MATLAB processes on different user accounts on the same machine.
 

Non-static Host ID

For Individual and Designated Computer licenses, the Host ID used to activate MATLAB must not change over time or the Host ID will not match the Host ID in the license file, and MATLAB issues License Manager Error -9. This is common for many virtual machine configurations.
To resolve, configure your system to have a static Host ID, and then reactivate MATLAB.
  166 Comments

Sign in to comment.

More Answers (143)

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