# Environment Variable File

<div align="left"><figure><img src="https://293916515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfrsTBOplEut9PuOhst4B%2Fuploads%2FdtS2pb7P3j1oWop0xdac%2Fenv.apexlm%202025.15.png?alt=media&#x26;token=23769cf4-da00-411c-8a2e-01308af1f35e" alt=""><figcaption></figcaption></figure></div>

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:

1. **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.
2. **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).
3. **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
4. **SRV\_PATH**: Contains the hostname(s) and port(s) of the most recently used license server or TRIAD
5. **USER\_PORT**: True if APEXLM\_PORT is supplied by the user. Default = false
6. **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.
7. **PROXY\_IP**: This key is not yet utilized
8. **PROXY\_PORT**: This key is not yet utilized


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://almdoc.apexturbine.com/environment-variable-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
