MATLAB: Do I receive the message “Not a valid server hostname, exiting.” in the license manager log file

MATLAB

I am unable to start the license manager successfully. Why do I receive the message "Not a valid server hostname, exiting." in the license manager log file?

Best Answer

This error message indicates that the hostname specified in the license file the license manager is using does not match the hostname of the computer trying to start the license manager. For example, one may see:
 
14:59:21 (lmgrd) "matlab-server-01": Not a valid server hostname, exiting.
14:59:21 (lmgrd) Valid license server system hosts are: "ml-license-serv-01"
In this instance, ml-license-serv-01 is recorded in the license file, but matlab-server-01 is the computer's hostname. To resolve this problem, you will need to change the server line from:
 
SERVER ml-license-serv-01 1111222233334444 27000
to
 
SERVER matlab-server-01 1111222233334444 27000
Once you have updated the server's license file, be sure to restart the license manager and update the license file for each client accordingly. If you are unable to resolve this error, please contact MathWorks Licensing and Installation Support.