7.3 Changing default ports and firewall and antivirus issues

The token server consists of two daemons

  • lmgrd: The token server daemon. It uses the port specified in the license file (by default 27007 for MOSEK licenses).

  • MOSEKLM: A vendor demon started by lmgrd. Opens its own port, which is either chosen dynamically, or can be specified in the license file (see below).

Both need an open port in the firewall if a MOSEK client should be able to check out a license license token.

7.3.1 Find port numbers from the log file

Both port numbers can be determined from the log file of the token server. The lmgrd port appears in:

9:49:15 (lmgrd) (@lmgrd-SLOG@) === Network Info ===
9:49:15 (lmgrd) (@lmgrd-SLOG@) Listening port: 27007

and the MOSEKLM vendor daemon port appears in:

9:49:15 (MOSEKLM) (@MOSEKLM-SLOG@) === Network Info ===
9:49:15 (MOSEKLM) (@MOSEKLM-SLOG@) Listening port: 36867

7.3.2 Specify fixed ports for the daemons

To specify explicitly which port number each daemon should use you must change the license file. The first lines in a standard MOSEK floating license file look like

SERVER my_server 123456789ABC 27007
USE_SERVER
VENDOR MOSEKLM

Suppose we want the lmgrd to use port 27008 and MOSEKLM to use port 3084 instead. Then we change those lines of the license file to:

SERVER my_server 123456789ABC 27008
USE_SERVER
VENDOR MOSEKLM port=3084

Restart the token server and configure your firewall to allow access to the chosen port numbers, in this case 27008 and 3084.

7.3.3 Testing that the ports are open

To check if both ports required by the token server are open use the telnet command as follows

telnet my_server 27008     // Or your lmgrd port number
telnet my_server 3084      // Or your vendor daemon port number

on the client computer(s). If you get an error message similar to

Connecting to my_server...Could not open connection to the host,
on port 27008: Connect failed

then the port is not open, or there is some other network issue preventing the connection (assuming that the token server indeed started correctly). See also the License Administration Guide for more information.

7.3.4 Antivirus

Note that antivirus software can have a similar effect and also block connections, even from the same machine. In this case instruct the software to allow connections through the two ports you specify explicitly in the license file as shown above.