Environment Variable File
Last updated
Last updated
The environment variable file stores information as key=value pairs. This file is modified when the ALM changes licenses modes, the license path, or the port. The environment variable file is located at C:\Users\<user>\AppData\Roaming\APEX\.env.apexlm
The environment variable file can be modified manually in a text editor such as notepad, but it is strongly advised to only modify this file while the ALM is not running. Changing values, such as the port, may hinder APEX applications from communicating with the ALM. The environment variables are updated when a field is changed in the options window or when a license is applied. The following environment variables are listed as follows:
APEXLM_PORT: Contains the port that the ALM and all APEX applications will communicate through. If this variable does not exist, the ALM will ask the operating system to generate a free port and store it here. All apex applications that communicate with the ALM will read the value of APEXLM_PORT to determine what port to connect to. This value is only read by the ALM on startup. Therefore, it is important not to change this value while the ALM is running.
LIC_TYPE: Contains the license mode of the ALM on next start up. The values can be NL for node locked license file, LS for license server, and OC for OpenCode (not supported in version 2025.15).
LF_PATH: Contains the path to the most recently used node locked license file. LF_PATH is only used when LIC_TYPE is set to NL
SRV_PATH: Contains the hostname(s) and port(s) of the most recently used license server or TRIAD
USER_PORT: True if APEXLM_PORT is supplied by the user. Default = false
RETRIES: The ApexLM.exe daemon attempts to bind to port APEXLM_PORT up to 3 times by default (this value can be modified in the Environment Variable File). On each fail the value of RETRIES is incremented by one. If RETRIES is greater than 2 then the ApexLM.exe terminates and does not try to start again.
PROXY_IP: This key is not yet utilized
PROXY_PORT: This key is not yet utilized