> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/gateway/guides/standalone-web-app.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Use the standalone web application

Turn on the Devolutions Gateway standalone web application to open RDP, SSH, Telnet, VNC, ARD and Active Directory sessions from a browser.

The ***standalone web application*** is a web client built into Devolutions Gateway. It opens RDP, SSH, Telnet, VNC, Apple Remote Desktop (ARD) and Active Directory (LDAP or LDAPS) sessions from a web browser, without Devolutions Server or Devolutions Cloud. Users type the host and credentials themselves: nothing comes from a vault.

The standalone web application is turned off by default. When it is on, its address is `https://{gateway host}:{HTTP port}/jet/webapp/client` (for example `https://gateway.example.com:7171/jet/webapp/client`), and the root address of the Devolutions Gateway HTTP listener redirects to it.

{% hint style="info" %}
To open sessions from vault entries, with permissions, rulesets and session recording managed centrally, use the web interface of Devolutions Server or Devolutions Cloud instead. See [Open sessions in a web browser](https://docs.devolutions.net/gateway/guides/connect/web-client.md).
{% endhint %}

## Authentication

With ***Custom*** authentication, the default of the Windows installer, users sign in with a user name and password listed in the Devolutions Gateway users file (`users.txt`).

{% hint style="warning" %}
The standalone web application also has a ***None*** authentication, without a sign-in page: anyone who can reach the Devolutions Gateway address can use the web application.
{% endhint %}

## Turn on the standalone web application

The standalone web application needs a provisioner private key in the Devolutions Gateway configuration (`ProvisionerPrivateKeyFile`), because Devolutions Gateway signs the session tokens of the web application itself. Without it, the Devolutions Gateway service does not start and logs "provisioner private key must be specified when the standalone web application is enabled".

{% tabs %}
{% tab title="Windows installer" %}

1. Run the Devolutions Gateway installer and choose to configure Devolutions Gateway now.
2. On the ***Configuration*** page, select ***Enable the Gateway web interface***. ***Generate encryption keys*** is then selected automatically: the installer creates the provisioner key pair, including the private key, and skips the ***Encryption Keys*** page. To use your own keys instead, clear ***Generate encryption keys*** and provide both the ***Public Key File*** and the ***Private Key File*** on the ***Encryption Keys*** page.
3. On the ***Web Application Options*** page, choose the ***Authentication*** method.
4. With ***Custom*** authentication, enter the user name and password of the ***Default User***.
5. Finish the wizard.

For an unattended installation, the matching installer properties are `P.CONFIGUREWEBAPP`, `P.AUTHENTICATIONMODE` (`Custom` by default), `P.WEBUSERNAME` and `P.WEBPASSWORD`. Values typed on a command line, such as `P.WEBPASSWORD`, are visible to other processes on the machine: prefer the wizard, or create the user afterward with PowerShell.
{% endtab %}

{% tab title="PowerShell" %}
Run these commands in an elevated PowerShell session on the Devolutions Gateway machine. The `DevolutionsGateway` module is installed with Devolutions Gateway on Windows and is available on the PowerShell Gallery.

```powershell
# Creates a provisioner key pair only if none exists yet
New-DGatewayProvisionerKeyPair

$WebApp = New-DGatewayWebAppConfig -Enabled $true -Authentication Custom
Set-DGatewayConfig -WebApp $WebApp

# Prompts for the user name and password instead of typing them on the command line
$Credential = Get-Credential
Set-DGatewayUser -Username $Credential.UserName -Password $Credential.GetNetworkCredential().Password

Restart-DGateway
```

`New-DGatewayProvisionerKeyPair` stops with "… already exists, use -Force to overwrite" when a key pair is already configured. Do not overwrite the key pair of a Devolutions Gateway that is registered in Devolutions Server or Devolutions Cloud: those products sign tokens with the matching key.

{% hint style="warning" %}
When the `DevolutionsGateway` PowerShell module saves `gateway.json`, it keeps only the keys it knows. After a save, check the file and re-add `"TlsVerifyStrict": true` and any other key that was removed. When the `WebApp` section contains a key the module does not know, the module drops the whole `WebApp` section, which turns off the standalone web application: add the section back in `gateway.json`, or run `Set-DGatewayConfig -WebApp (New-DGatewayWebAppConfig -Enabled $true -Authentication Custom)`, then restart the Devolutions Gateway service. See [PowerShell module](https://docs.devolutions.net/gateway/reference/powershell-module.md).
{% endhint %}
{% endtab %}

{% tab title="gateway.json" %}
Add a `WebApp` object to `gateway.json`, then restart the Devolutions Gateway service. The file is in `%ProgramData%\Devolutions\Gateway\` on Windows and in `/etc/devolutions-gateway/` on Linux.

```json
{
  "ProvisionerPrivateKeyFile": "provisioner.key",
  "WebApp": {
    "Enabled": true,
    "Authentication": "Custom",
    "AppTokenMaximumLifetime": 28800,
    "LoginLimitRate": 10,
    "UsersFile": "users.txt"
  }
}
```

{% endtab %}

{% tab title="Docker" %}
Set these environment variables on the `devolutions/devolutions-gateway` container:

* `WEB_APP_ENABLED`: `true` turns on the standalone web application (default `false`).
* `WEB_APP_USERNAME` and `WEB_APP_PASSWORD`: the user of ***Custom*** authentication. Set both: when one of them is missing, the web application has no sign-in page and anyone who can reach the Devolutions Gateway address can use it.
* `PROVISIONER_PRIVATE_KEY_B64` and `PROVISIONER_PUBLIC_KEY_B64`: the provisioner key pair. Without them, the container generates a new key pair at every start.

When the web application is on, the container turns off the TCP listener by default (`TCP_ENABLED`). Environment variables are visible to anyone who can inspect the container: use your platform's secret storage where possible.
{% endtab %}
{% endtabs %}

### WebApp settings

<table><thead><tr><th width="260">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Enabled</strong></td><td><code>true</code> turns on the standalone web application. Default: <code>false</code>.</td></tr><tr><td><strong>Authentication</strong></td><td><code>Custom</code>: user name and password from the users file. <code>None</code>: no sign-in page, so anyone who can reach the Devolutions Gateway address can use the web application.</td></tr><tr><td><strong>AppTokenMaximumLifetime</strong></td><td>Maximum lifetime of a web application sign-in, in seconds. Default: <code>28800</code> (8 hours). After this time, users sign in again.</td></tr><tr><td><strong>LoginLimitRate</strong></td><td>Maximum number of sign-in attempts per minute for one user name from one IP address. Default: <code>10</code>. Maximum: <code>255</code>. Further attempts in the same minute fail with "too many login attempts".</td></tr><tr><td><strong>UsersFile</strong></td><td>Path of the users file used by <code>Custom</code> authentication. Default: <code>users.txt</code> in the Devolutions Gateway configuration folder. A relative path is relative to that folder.</td></tr></tbody></table>

## Manage web application users

With ***Custom*** authentication, users are stored in the users file, one `{user name}:{password hash}` line per user. Passwords are stored as Argon2 hashes in PHC string format: plain-text passwords do not work. Blank lines and lines starting with `#` are ignored. A line without `:` stops the service with "missing separator in users file".

Manage the users with the `DevolutionsGateway` PowerShell module:

<table><thead><tr><th width="260">COMMAND</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><code>Set-DGatewayUser -Username -Password</code></td><td>Adds a user, or changes the password of an existing user. The password is hashed with Argon2id before it is written.</td></tr><tr><td><code>Get-DGatewayUser [-Username]</code></td><td>Lists the users of the users file, or one user.</td></tr><tr><td><code>Remove-DGatewayUser -Username</code></td><td>Removes a user.</td></tr></tbody></table>

On Windows, the installer restricts the users file so that standard users of the machine cannot read it.

## Sign in

1. Open `https://{gateway host}:{HTTP port}/jet/webapp/client` in a browser.
2. On the ***Login to continue*** page, enter the ***Username*** and ***Password***.
3. Click ***Continue***.

Messages on the sign-in page:

<table><thead><tr><th width="320">MESSAGE</th><th>MEANING</th></tr></thead><tbody><tr><td>"Username is required." / "Password is required."</td><td>A field is empty.</td></tr><tr><td>"Invalid username or password, please verify your credentials"</td><td>The user name is not in the users file, or the password is wrong.</td></tr><tr><td>"too many login attempts"</td><td>The <strong>LoginLimitRate</strong> limit was reached for this user name and IP address. Wait one minute.</td></tr><tr><td>"standalone web application not enabled"</td><td>The standalone web application is turned off in the Devolutions Gateway configuration.</td></tr></tbody></table>

## Open a session

1. In ***Remote Session Information***, choose the ***Protocol***.
2. Enter the ***Hostname*** of the target. For RDP, a port can be added as `host:port`.
3. Fill in the authentication fields and, if needed, open ***More Settings***.
4. Click ***Connect Session***.

Each session opens in its own tab. The ***Sessions*** menu lists the open sessions.

### Protocols

<table><thead><tr><th width="200">PROTOCOL</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>RDP</strong></td><td>Remote Desktop Protocol. Windows targets must be Windows 10, Windows 11 or Windows Server 2016 and later: earlier Windows versions lack the TLS cipher suites that Devolutions Gateway uses.</td></tr><tr><td><strong>Telnet</strong></td><td>Teletype Network. The connection between Devolutions Gateway and the target is not encrypted.</td></tr><tr><td><strong>SSH</strong></td><td>Secure Shell.</td></tr><tr><td><strong>VNC</strong></td><td>Virtual Network Computing.</td></tr><tr><td><strong>ARD</strong></td><td>Apple Remote Desktop.</td></tr><tr><td><strong>Active Directory</strong></td><td>Active Directory management over LDAP (port 389) or LDAPS (port 636).</td></tr></tbody></table>

### RDP options

<table><thead><tr><th width="320">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Username</strong> / <strong>Password</strong></td><td>Credentials on the target.</td></tr><tr><td><strong>Screen Size</strong></td><td><em><strong>Default</strong></em>, <em><strong>FullScreen</strong></em>, a fixed size from 640x480 to 3840x2400, or <em><strong>Custom</strong></em>. With <em><strong>Custom</strong></em>, enter <em><strong>Desktop Width</strong></em> (maximum 4096) and <em><strong>Desktop Height</strong></em> (maximum 2048), in pixels.</td></tr><tr><td><strong>Pre Connection Blob</strong></td><td>A preconnection blob (PCB) sent to the target, for example to select a virtual machine on a Hyper-V host.</td></tr><tr><td><strong>KDC Server URL</strong></td><td>Kerberos Key Distribution Center to use for this session. Must start with <code>tcp://</code> or <code>udp://</code>, otherwise "Invalid URL - Must start with tcp:// or udp:// ." is shown.</td></tr><tr><td><strong>Enable Dynamic Display Configuration (Display Control)</strong></td><td>Resizes the remote desktop when the browser window changes size.</td></tr><tr><td><strong>Auto Clipboard Mode</strong></td><td>"Enables automatic clipboard syncing with the remote server."</td></tr></tbody></table>

### SSH options

<table><thead><tr><th width="320">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Authentication</strong></td><td><em><strong>Username and Password</strong></em> (default), <em><strong>Private Key</strong></em> or <em><strong>Keyboard Interactive</strong></em>.</td></tr><tr><td><strong>Private key</strong></td><td>With <em><strong>Private Key</strong></em>, select the key file and enter its passphrase if it has one. The file must be smaller than 10 KB, otherwise "File size is too large, must be less than 10kb" is shown.</td></tr></tbody></table>

### VNC options

<table><thead><tr><th width="320">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Authentication</strong></td><td><em><strong>None</strong></em>, <em><strong>VNC Password</strong></em> (default) or <em><strong>Username and Password</strong></em>.</td></tr><tr><td><strong>Screen Size</strong></td><td>Same choices as for RDP.</td></tr><tr><td><strong>Color Format</strong></td><td><em><strong>Default</strong></em> (the format advertised by the server), <em><strong>Full</strong></em> (true 24-bit color), <em><strong>High</strong></em> (16-bit color), <em><strong>Medium</strong></em> (256 colors), <em><strong>Low</strong></em> (64 colors) or <em><strong>Very Low</strong></em> (8 colors).</td></tr><tr><td><strong>Enabled Encodings</strong></td><td><em><strong>Raw</strong></em>, <em><strong>Zlib</strong></em>, <em><strong>Hextile</strong></em>, <em><strong>Tight</strong></em>, <em><strong>TightPng</strong></em>.</td></tr><tr><td><strong>JPEG Quality Level</strong> / <strong>Use Tight JPEG</strong></td><td>JPEG compression used with the Tight encoding.</td></tr><tr><td><strong>Enable Cursor Pseudo-Encoding</strong></td><td>Draws the remote cursor locally.</td></tr><tr><td><strong>Enable Extended Clipboard</strong></td><td>Uses the extended clipboard protocol when the server supports it.</td></tr><tr><td><strong>Ultra Virtual Display</strong></td><td>Uses the UltraVNC virtual display.</td></tr><tr><td><strong>Auto Clipboard Mode</strong></td><td>Synchronizes the clipboard automatically.</td></tr></tbody></table>

### ARD options

<table><thead><tr><th width="320">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Username</strong> / <strong>Password</strong></td><td>macOS account on the target.</td></tr><tr><td><strong>Quality Mode</strong></td><td><em><strong>Low</strong></em>, <em><strong>Medium</strong></em>, <em><strong>High</strong></em>, <em><strong>Full</strong></em> or <em><strong>Adaptive</strong></em>.</td></tr><tr><td><strong>Resolution Quality</strong></td><td><em><strong>High</strong></em> or <em><strong>Low</strong></em>.</td></tr><tr><td><strong>ARD only Input Encryption</strong></td><td>"By default, we enable full ARD session encryption. This option forces only input encryption which improves performance."</td></tr><tr><td><strong>Auto Clipboard Mode</strong></td><td>Synchronizes the clipboard automatically.</td></tr></tbody></table>

### Active Directory options

<table><thead><tr><th width="320">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Hostname</strong></td><td>Domain controller or domain to connect to.</td></tr><tr><td><strong>Username</strong> / <strong>Password</strong></td><td>Domain account used for the LDAP connection.</td></tr><tr><td><strong>Use LDAPS</strong></td><td>"Use LDAP over TLS." The certificate of the domain controller must be trusted by the machine that runs Devolutions Gateway.</td></tr><tr><td><strong>Port</strong></td><td>389 or 636. Must be between 1 and 65535 ("Port must be between 1 and 65535.").</td></tr><tr><td><strong>Domain Override</strong></td><td>Optional domain to use instead of the one derived from the host.</td></tr><tr><td><strong>Organizational Unit</strong></td><td>Optional OU to open, for example <code>OU=Users,DC=example,DC=com</code>.</td></tr></tbody></table>

The Active Directory session lets you browse users and groups, create users and groups, reset passwords, enable or disable and unlock accounts, edit properties and look up BitLocker recovery passwords (***Find BitLocker Recovery Password***), as allowed by the permissions of the account used.

### Find hosts with a network scan

Beside the connection form, the standalone web application scans the network of Devolutions Gateway and lists the hosts it finds in a ***Servers found (N)*** panel. Selecting a host pre-fills the connection form (***Prefill form***), and ***Restart Network Scan*** runs the scan again. If nothing is found, "We were unable to locate any servers. You can still enter the information manually." is shown. See [Network scan](https://docs.devolutions.net/gateway/guides/network-scan.md).

## Session toolbar

The floating toolbar of a graphical session offers these commands. It can be docked at the top, bottom, left or right of the window.

<table><thead><tr><th width="260">COMMAND</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Ctrl + Alt + Del</strong></td><td>Sends <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Del</kbd> to the target.</td></tr><tr><td><strong>Windows key</strong></td><td>Sends the Windows key.</td></tr><tr><td><strong>Clipboard</strong></td><td><em><strong>Send Clipboard</strong></em> sends the local clipboard to the target ("Clipboard content has been sent to the remote server!"). <em><strong>Save Clipboard</strong></em> copies the remote clipboard locally ("Clipboard content has been copied to your clipboard!").</td></tr><tr><td><strong>Fit to screen</strong> / <strong>Actual size</strong> / <strong>Full screen</strong></td><td>Scaling of the remote screen in the browser.</td></tr><tr><td><strong>Dynamic resize</strong></td><td>Resizes the remote desktop with the browser window.</td></tr><tr><td><strong>Unicode keyboard mode</strong></td><td>Sends characters instead of key codes, for keyboard layouts that differ between the browser and the target.</td></tr><tr><td><strong>Show cursor as crosshair</strong>, <strong>White background</strong>, <strong>Wheel speed</strong>, <strong>Auto-hide toolbar</strong></td><td>Display and input preferences.</td></tr><tr><td><strong>Session info</strong></td><td>Shows the details of the session.</td></tr><tr><td><strong>Close session</strong></td><td>Ends the session.</td></tr></tbody></table>

Messages when a session ends: "Session terminated gracefully", "Connection has been terminated.", "Connection timeout.", "Connection error: Please verify your connection settings." and "Your connection is not ready".

## Good to know

* The standalone web application is in English only.
* The menu offers ***Light mode*** or ***Dark mode*** and ***Logout***. It also checks `https://devolutions.net/products.htm` from the browser and shows "New version X available" when a newer Devolutions Gateway exists, or "Latest version unavailable" when the browser cannot reach that page.
* The web application files are installed in the `webapp` folder of the Devolutions Gateway installation folder on Windows and in `/usr/share/devolutions-gateway/webapp` on Linux.
* The browser must reach the Devolutions Gateway HTTP listener directly, including WebSocket connections. See [Ports and firewall](https://docs.devolutions.net/gateway/reference/ports-and-firewall.md).

## Next

* [Configuration file (gateway.json)](https://docs.devolutions.net/gateway/reference/configuration.md)
* [Manage Devolutions Gateway with PowerShell](https://docs.devolutions.net/gateway/for-administrators/powershell.md)
* [Harden Devolutions Gateway](https://docs.devolutions.net/gateway/for-administrators/hardening.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/gateway/guides/standalone-web-app.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
