COMSOL Multiphysics® Installation Guide > License Manager Installation on Windows > The License File

The License File
The license file has the same structure on all platforms: Windows, OS X, and Linux. In this section, the most important parts of the license file are explained. Below is an example of the contents of a license.dat file:
#------------------------------------------------------------------
# COMSOL 5.2a FNL License No: 1234567
# Visit www.comsol.com/install for latest installation instructions
#------------------------------------------------------------------
SERVER apollo.thecompany.com 0050569e1b87 1718
USE_SERVER
VENDOR LMCOMSOL port=1719
FEATURE SERIAL LMCOMSOL 5.2a permanent uncounted \
VENDOR_STRING=C,5701108 HOSTID=ANY BORROW=720 SN=1234567 TS_OK \
SIGN=0C3A8BF6722E
INCREMENT COMSOL LMCOMSOL 5.2a permanent 4 SUPERSEDE DUP_GROUP=UHD \
ISSUED=6-JUN-2012 BORROW=720 SN=1234567 SIGN=123456789ABC
INCREMENT COMSOLGUI LMCOMSOL 5.2a permanent 4 SUPERSEDE DUP_GROUP=UHD \
ISSUED=6-JUN-2012 BORROW=720 SN=1234567 SIGN=123456789ABC
INCREMENT HEATTRANSFER LMCOMSOL 5.2a permanent 2 SUPERSEDE \
DUP_GROUP=UHD ISSUED=6-JUN-2012 BORROW=720 SN=1234567 \
SIGN=123456789ABC
INCREMENT CLIENTSERVER LMCOMSOL 5.2a permanent 4 SUPERSEDE \
DUP_GROUP=UHD ISSUED=6-JUN-2012 BORROW=720 SN=1234567 \
SIGN=123456789ABC
INCREMENT CLUSTERNODE LMCOMSOL 5.2a permanent 4 SUPERSEDE DUP_GROUP=U \
ISSUED=6-JUN-2012 BORROW=720 SN=1234567 SIGN=123456789ABC
INCREMENT COMSOLBATCH LMCOMSOL 5.2a permanent 2 SUPERSEDE \
DUP_GROUP=UHD ISSUED=6-JUN-2012 BORROW=720 SN=1234567 \
SIGN=123456789ABC
INCREMENT HEATTRANSFERBATCH LMCOMSOL 5.2a permanent 2 SUPERSEDE \
DUP_GROUP=UHD ISSUED=6-JUN-2012 BORROW=720 SN=1234567 \
SIGN=123456789ABC
the comment lines
Comment lines can be included in the license file by starting them with the hash symbol #. These lines have no effect on the license server or client.
the server line
In the license.dat file, the contents of the line starting with SERVER should contain:
The Host Name of the license server. In the example above, the Host Name is apollo.thecompany.com. This name can be edited by the user.
The hostid of the license server. In the example above, the hostid is 0050569e1b87. This number cannot be edited by the user.
Confirm that the license server Host Name is the actual name of your license server (the computer that you intend to run the FlexNet license manager software on); otherwise, change it by editing the file. The default port number (1718) can be changed in the unlikely event that another program is already using that port number (you then get an error message indicating this when starting the license manager). If the default port number 1718 is being used, change it to any other number between 1025 and 64,000.
the use_server line
The USE_SERVER line, with no arguments, does not impact the license manager but has implications for the client. When a COMSOL client sees the USE_SERVER line, it ignores everything in the license file except the preceding SERVER lines and transfers checkout validation to the vendor daemon. This means that if you are running COMSOL on one computer, and the license manager on a different computer, then your license file can only contain two lines: the SERVER line and the USE_SERVER line.
the vendor line
The VENDOR line defines the name of the LMCOMSOL vendor daemon. This name cannot be changed. The vendor daemon is a process that has to be running together with the license manager and is automatically started when the license manager is started. The LMCOMSOL vendor daemon requires its own port number. In the example above, the default port number 1719 is shown.
If the license manager is running on a computer with an active firewall and the COMSOL client is outside of that firewall, at least two port numbers must be opened up in the license server’s firewall to allow client computers to connect to the license manager and the vendor daemon.
Using the example license file above, configure the firewall to allow access to the port numbers 1718 and 1719. If you have chosen other port numbers and modified the license.dat file accordingly, configure the firewall to allow access to your chosen port numbers. If you are unsure about which port numbers are free or how to enable firewall port access, contact your system administrator.
You cannot modify anything in the license.dat file except the license server name and (if necessary) port numbers, or the license might not work.
the serial line
The SERIAL line contains information on the license type, license number, and the products included in the license.
the increment and feature lines
The INCREMENT or FEATURE lines contain a product name, version, expiration date, and the number of available licenses. The example file above shows that the user has a perpetual (permanent) COMSOL 5.2a Floating Network License allowing four concurrent users of COMSOL Multiphysics and two concurrent users of the Heat Transfer Module. The number after “SIGN=” at the end of each INCREMENT line contains a license key. Long lines can be broken by a continuation character (\).
The Feature Names
The following table contains the FEATURE names for all products in the COMSOL 5.2a product suite:
LiveLink™ for AutoCAD®
LiveLink™ for PTC® Creo® Parametric
LiveLink™ for Excel®
LiveLink™ for Inventor®
LiveLink™ for MATLAB®
LiveLink™ for Revit®
LiveLink™ for PTC® Pro/ENGINEER®
LiveLink™ for Solid Edge®
LiveLink™ for SOLIDWORKS®
In addition, the following postfix additions are available: