getServers
Syntax

Session.getServers();
Parameters
Return value Array of Array of string
The returned array contains arrays of two strings: the display name and the URL of the server.
Description
The getServers() method returns a list of servers from the WWSettings.xml file that can be used to login to. The dynamically retrieved server list is currently not supported by this scripting call.
Examples
List all available servers
// Get all servers defined in WWSettings.xml.
var servers = app.entSession.getServers();
for (var i = 0; i < servers.length; i++) {
alert("Server: " + servers[i][0] + " — URL: " + servers[i][1]);
}
Supported versions
| Adobe Version | Supported |
|---|---|
| 2023 | ✔ |
| 2024 | ✔ |
| 2025 | ✔ |
| 2026 | ✔ |