MATLAB: How to specify an options file and a daemon port number in the same license file

MATLAB

I would like to know how I can specify both the daemon port number and an options file inside my license file.

Best Answer

If you are using an options file and also need to specify a daemon port due to firewall restrictions, there is a specific order in which your daemon line must be written.
Your DAEMON line in your license file should look like the following:
DAEMON MLM "Path to MLM vendor daemon" options="Path to options file" port=portnumber
For example:
DAEMON MLM "C:\Program Files\MATLAB\R2010b\etc\win32\mlm.exe" options="C:\Program Files\MATLAB\R2010b\etc\win32\mlm.opt" port=1234
The order in which these items are written is crucial. If the order is different from the example above, you will get a syntax error.