Installation & Licensing Center
Setting Custom Ansys License Server/Firewall Ports
Authored by Caleb Scharf
December 2nd, 2022
6638 views
1 likes
KB956147
Description
By default, the Ansys license server communicates over three different ports. We recommend leaving these ports set to their default values and allowing these Ansys processes through the firewall by application whenever possible, however, there are occasions that can require you to change these default port settings.
The most common scenario is having to set a static port for the Vendor Daemon service, which by default is a dynamic port (changes every time the license manager service starts). This is necessary if you need to allow these ports through a network VPN/firewall/router or are using a Linux license server. This can also be required if you have other FlexNet based applications installed on the same server which are using these ports (SolidWorks, MATLAB, Creo, NX, etc.).
Ansys Communicates over Three Ports
- 1055 - Required for communication with the FlexLM service (lmgrd.exe)
-
2325 - Required for communication with the Ansys Licensing Interconnect service (ansysli_server.exe)
- This port is only utilized for versions 2020 R2 and before.
-
Dynamic port - Required for communication with the Ansys "Vendor daemon" service (ansyslmd.exe)
- By default, it changes every time the license manager is started.
- This process/port is required for versions 2021R1 or later.
- For versions 2020 R2 and prior, it's only required for Electronics products, and to view license status.
Solution
Vendor Daemon (ansyslmd.exe) - Default Port = Dynamic
- First stop the license manager service from running.
- Open the installed license file. The default file path is:
C:\Program Files\ANSYS Inc\Shared Files\Licensing\license_files\ansyslmd.lic
- Set a static "Vendor Daemon" port by adding the following highlighted section to your license file.
- We recommend using port 1056 because it's one digit higher than the default 1055 port used for FlexLM, making it easier to remember, and it is NOT often used by other applications.
- We recommend using port 1056 because it's one digit higher than the default 1055 port used for FlexLM, making it easier to remember, and it is NOT often used by other applications.
- Save the file, and restart the Ansys license manager.
FlexLM (lmgrd.exe) - Default Port = 1055
- First, Stop the license manager service from running.
- Open the installed license file. The default file path is:
C:\Program Files\ANSYS Inc\Shared Files\Licensing\license_files\ansyslmd.lic
- Modify the default port of 1055 to a port of your choosing.
- Save the file, and restart the Ansys license manager.
- Communicate the change to your users and have them modify their specified license server.
Ansys License Interconnect (ansysli_server.exe) - Default Port = 2325
- First stop the license manager service from running.
- Open the following file in notepad or a text editor.
"C:\Program Files\ANSYS Inc\Shared Files\Licensing\ansysli_data\ANSYSLI_PORT"
- Modify the default port of 2325 to a port of your choosing.
- Save the file, and restart the Ansys license manager..
- Communicate the change to your users and have them modify their specified license server.
How to Identify if other applications are using the same ports as Ansys?
Do you have other applications on the same server (SolidWorks, Matlab, Creo, NX, etc.) that are using the same ports Ansys does? Both programs cannot successfully use the same ports simultaneously. See the picture below for guidance on how to identify what ports are in use by what service & by what application.