7 Client setup

This section describes setting up client machines.

7.1 With a local license file

Default setup

The preferred option is to place the license file mosek.lic in the directory mosek in the user’s home directory. That means


on UNIX systems and Windows, respectively. If no other configuration options are set (see below) this is the default location where MOSEK looks for a license. This works for all types of licenses. If the license file contains a floating license, the client will use the information in that file to find and contact a token server.

Environment variable

Alternatively, the path to the license file may be set by the environment variable MOSEKLM_LICENSE_FILE, for example:


Command line options

From the MOSEK command line the directory containing the file mosek.lic can be set with the option -l.

7.2 Without a local license file

Another method to check out a license from a floating license token server is to set the environment variable MOSEKLM_LICENSE_FILE in one of the following formats


where hostname is the name of the token server machine and port is the port on which MOSEKLM is listening. Then the client MOSEK application will contact the server directly and the possible overhead for opening and reading the license file is eliminated. Observe a potential firewall may block access to the token server.

7.3 Testing

In either case the client configuration can be tested by running the program msktestlic.