8.10. Understanding Port Numbers

In addition to the FlexNet port, the Licensing Interconnect also uses a port. Ansys, Inc. has registered two port numbers with the IANA: 1055 for FlexNet and 2325 for the Licensing Interconnect. When no port numbers are specified, the defaults are used.

Below are the locations where you may need to specify the Licensing Interconnect port number:

  1. If you are not using the default Licensing Interconnect port number (2325), you must include the ANSYSLI_PORT=<port> keyword in the ansyslmd.ini file on the license server.

  2. If you have multiple standalone license servers (non-triad) and you are caching the license file information from one license server to another, use either the -cache_srv command option when starting the Licensing Interconnect or the CACHE_SERVER=<ansysli_port>@<host> keyword in the ansyslmd.ini file.

  3. When running Ansys applications from a client machine, specify the path to the Licensing Interconnect by either the ANSYSLI_SERVERS=<port>@<host> keyword in the ansyslmd.ini file on the client system or the ANSYSLI_SERVERS environment variable on the client system.

Firewall Issues  —  When any of your users are running Ansys, Inc. products over a firewall, be sure that all three necessary port numbers are open to ensure successful communications:

  • 2325 for the Licensing Interconnect

  • 1055 for lmgrd

  • The port you specify (in the license file) for ansyslmd (required only if specified in the license file)

WAN Optimization Software: When using WAN Optimization Software on your network, it may be necessary to set the WAN Optimization Software to bypass the Licensing Interconnect port (2325) to ensure that the Licensing Interconnect communication is not blocked. Failure to bypass the Licensing Interconnect port could result in licenses remaining checked out even after the application has exited.

Freeing Ports  —  Some systems take much longer to free ports than other systems, especially if a process crashes or is stopped with kill -9. We provide two ansyslmd.ini keywords and corresponding command options to ensure that the Licensing Interconnect and the Licensing Interconnect Monitor wait a sufficient amount of time to allow the Licensing Interconnect port to free, thus allowing the Licensing Interconnect to start successfully. These keywords/command options are described in Enterprise Licensing Reference:

  • ANSYSLI_PORT_TIMEOUT (-port_timeout)

  • ANSYSLI_RESTART_PORT_TIMEOUT (-restart_port_timeout)