> 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/devolutions-server/install-from-console.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Install Devolutions Gateway from the Devolutions Server Console

Install, edit, update or uninstall Devolutions Gateway from the Devolutions Server Console, side-by-side or standard, or with its command line.

The Devolutions Server Console installs Devolutions Gateway on the Windows computer where the Console runs, configures it with the Devolutions Server public key, and starts it. It also edits, updates and uninstalls that gateway. Use it when the gateway runs on the Devolutions Server machine; for another server, use the [Windows installer](https://docs.devolutions.net/gateway/for-administrators/install/windows.md), the [Linux packages](https://docs.devolutions.net/gateway/for-administrators/install/linux.md) or [Docker](https://docs.devolutions.net/gateway/for-administrators/install/docker.md).

The Devolutions Server Console does not install Devolutions Agent. To update gateways from the Devolutions Server web interface later, install Devolutions Agent on the gateway machine too: see [Install Devolutions Agent on Windows](https://docs.devolutions.net/agent/for-administrators/deploy/windows).

## Pick the right option

<table><thead><tr><th width="220">CHOOSE</th><th>WHAT HAPPENS</th><th width="250">USE IT WHEN</th></tr></thead><tbody><tr><td><em><strong>Side-by-side installation</strong></em></td><td>Installs Devolutions Gateway with an HTTP listener and no certificate of its own. The Devolutions Server website in IIS forwards the <code>/jet/</code> path to the gateway, so the gateway uses the Devolutions Server address and certificate. The gateway is created in Devolutions Server automatically, with a new gateway ID.</td><td>Devolutions Server runs in IIS on this machine and can reach the target hosts.</td></tr><tr><td><em><strong>Standard installation</strong></em></td><td>Installs Devolutions Gateway with its own access URI, HTTP or HTTPS listener, TCP listener and certificate. You add the gateway in the Devolutions Server web interface afterwards.</td><td>The gateway needs its own address or certificate, or Devolutions Server does not run in IIS.</td></tr></tbody></table>

In the ***Devolutions Gateway*** group of the ***Companions*** tab, ***Install*** is always shown and is disabled when Devolutions Gateway is installed on the machine; ***Edit***, ***Update***, ***Uninstall*** and ***Explore*** are disabled when it is not installed. ***Side-by-side installation*** is enabled only when Devolutions Gateway is not installed, the selected Devolutions Server instance runs in IIS, and the version of the instance supports side-by-side installation.

## Install side-by-side

1. Open the Devolutions Server Console on the Devolutions Server machine and select the instance.
2. In the ***Companions*** tab, click ***Install*** – ***Side-by-side installation***.
3. Fill in the dialog:

<table><thead><tr><th width="250">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Source</strong></td><td><em><strong>Download version</strong></em> downloads the selected Devolutions Gateway version (<em><strong>Show Release Notes</strong></em> lists the changes). <em><strong>Install from msi file</strong></em> uses an installer you downloaded, for example on a server without internet access.</td></tr><tr><td><strong>Server Name</strong></td><td>The name of the gateway in Devolutions Server and in the gateway lists users see. Default: "Devolutions Gateway".</td></tr><tr><td><strong>Server Description</strong></td><td>Optional description of the gateway in Devolutions Server.</td></tr><tr><td><strong>HTTP listening port</strong></td><td>Port of the gateway HTTP listener. Default: 7171. Clients do not use it directly: they reach it through the Devolutions Server address.</td></tr><tr><td><strong>TCP listening port</strong></td><td>Port clients use for native sessions such as RDP and SSH. Default: 8181. Open it in the firewall of the Devolutions Server machine.</td></tr><tr><td><strong>Recording storage path</strong></td><td>Folder where the gateway stores session recordings. Empty: the default <code>recordings</code> folder in <code>%ProgramData%\Devolutions\Gateway</code>.</td></tr></tbody></table>

4. Click ***OK***.

The Devolutions Server Console then:

* downloads the installer from the Devolutions download site (`cdn.devolutions.net`) and checks its digital signature, unless you chose a file;
* adds a rule to the Devolutions Server website so that `https://<your Devolutions Server>/jet/…` reaches the gateway;
* installs Devolutions Gateway silently and configures it with the Devolutions Server access URI as external URL, the HTTP and TCP listeners, the Devolutions Server public key and the recording path;
* starts the ***Devolutions Gateway*** service and sets it to start automatically;
* creates the gateway in Devolutions Server, with the name and description you entered.

If the last step fails, the Console logs "Devolutions Gateway can't be created. It will be possible to create it manually via the Devolutions Server web interface later." Add it as described in [Register and configure the gateway in Devolutions Server](https://docs.devolutions.net/gateway/guides/devolutions-server/register-and-configure.md), with the Devolutions Server address as ***Devolutions Gateway URL***.

Check the result in the Devolutions Server web interface: ***Administration*** – ***Devolutions Gateway***, open the gateway menu and click ***Ping***.

{% hint style="info" %}
When you create a Devolutions Server instance with the Devolutions Server Console, the wizard can also install Devolutions Gateway side-by-side: select ***Install Devolutions Gateway*** on its Devolutions Gateway page and fill in the same fields.
{% endhint %}

## Install with the standard installation

1. Open the Devolutions Server Console on the machine that will run the gateway.
2. In the ***Companions*** tab, click ***Install*** – ***Standard installation***.
3. On the ***Source*** page, choose ***Download version*** or ***Install from msi file***, then click ***Next***.
4. On the ***Devolutions Gateway Listeners*** page, fill in:

<table><thead><tr><th width="250">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Access URI</strong></td><td>The external URL of the gateway, as Devolutions Server and users reach it, for example <code>https://gateway.example.com:7171</code>. Required. The scheme must be <code>http</code> or <code>https</code>, and <code>https</code> when the HTTP listener uses HTTPS.</td></tr><tr><td><strong>HTTP listener</strong></td><td>Scheme (HTTP or HTTPS) and port of the HTTP(S) listener. Default port: 7171. Devolutions Server uses it for health checks and configuration; Remote Desktop Manager and browsers use it for web sessions, tunnels and websites.</td></tr><tr><td><strong>TCP listener</strong></td><td>Port of the TCP listener used by native sessions such as RDP. Default: 8181.</td></tr><tr><td><strong>Certificate configuration</strong></td><td>Required with HTTPS. <em><strong>Custom certificate</strong></em>: a <em><strong>Certificate file</strong></em> (<code>.pfx</code>, <code>.p12</code>, <code>.pem</code> or <code>.crt</code>) with its <em><strong>Certificate password</strong></em> (<code>.pfx</code>, <code>.p12</code>) or <em><strong>Private key file</strong></em> (<code>.pem</code>, <code>.crt</code>). <em><strong>Windows Store certificate</strong></em>: <em><strong>Certificate store location</strong></em>, <em><strong>Certificate store name</strong></em> and <em><strong>Certificate subject name</strong></em>, or <em><strong>Select certificate...</strong></em>. Use a certificate with its full chain, trusted by the client computers.</td></tr><tr><td><strong>Recording storage path</strong></td><td>On the <em><strong>Other Configuration</strong></em> section: the folder where the gateway stores session recordings.</td></tr></tbody></table>

5. Click ***Next***. On the ***Devolutions Gateway key pair configuration*** page, set the ***Provisioner Public Key***:
   * ***Use the public key from DVLS instance '…'*** (with the name of your instance) when the gateway is on the Devolutions Server machine.
   * ***From file*** otherwise: select the public key downloaded from the Devolutions Server web interface (***Administration*** – ***Devolutions Gateway*** – ***More*** – ***Download public key***, file `gateway_public_key.pem`).
6. Click ***Next***, then ***Install***, and ***Close*** when the installation ends.
7. Add the gateway in Devolutions Server, with the access URI as ***Devolutions Gateway URL***: see [Register and configure the gateway in Devolutions Server](https://docs.devolutions.net/gateway/guides/devolutions-server/register-and-configure.md).

{% hint style="danger" %}
Never share the gateway's TLS private key or the Devolutions Server private key. Only the public key goes to the gateway.
{% endhint %}

## Edit, update, uninstall

All in the ***Devolutions Gateway*** group of the ***Companions*** tab, when Devolutions Gateway is installed on the machine:

<table><thead><tr><th width="200">BUTTON</th><th>WHAT IT DOES</th></tr></thead><tbody><tr><td><em><strong>Edit</strong></em></td><td>Changes the gateway ID, access URI, listeners, certificate, public key or recording path. The Console stops the service, applies the changes and starts it again. Use it to change the gateway certificate: see <a href="https://docs.devolutions.net/gateway/guides/certificates/change-certificate.md">Change the Devolutions Gateway certificate</a>.</td></tr><tr><td><em><strong>Update</strong></em></td><td>Downloads and installs a newer Devolutions Gateway version, with your configuration kept. The Console asks "Do you want to update to version {0}?", refuses an older version ("You can't update to version {0} since it is older than the currently installed version {1}.") and warns when the installer signature cannot be verified.</td></tr><tr><td><em><strong>Uninstall</strong></em></td><td>Stops the service and uninstalls Devolutions Gateway from the machine. If you no longer use the gateway, also delete it on the <em><strong>Devolutions Gateway</strong></em> page of the Devolutions Server web interface.</td></tr><tr><td><em><strong>Explore</strong></em></td><td>Opens <code>%ProgramData%\Devolutions\Gateway</code>, the folder of the configuration file, logs and default recordings.</td></tr></tbody></table>

Other ways to update a gateway, including from the Devolutions Server web interface with Devolutions Agent: [Update Devolutions Gateway](https://docs.devolutions.net/gateway/for-administrators/install/update.md).

## Command line

The Devolutions Server Console command line, `DPS.Console.CLI.exe` in the Devolutions Server Console installation folder, has a `gateway` command set. Run it as an administrator on the machine that will run the gateway.

<table><thead><tr><th width="250">COMMAND</th><th>WHAT IT DOES</th></tr></thead><tbody><tr><td><code>gateway install</code></td><td>Install a Devolutions Gateway server (standard installation).</td></tr><tr><td><code>gateway install-side-by-side</code></td><td>Install a Devolutions Gateway server side-by-side with a Devolutions Server instance.</td></tr><tr><td><code>gateway edit</code></td><td>Edit a Devolutions Gateway server. Only the options you pass are changed.</td></tr><tr><td><code>gateway update</code></td><td>Update a Devolutions Gateway server.</td></tr><tr><td><code>gateway uninstall</code></td><td>Uninstall a Devolutions Gateway server.</td></tr></tbody></table>

<table><thead><tr><th width="330">OPTION</th><th width="200">COMMANDS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><code>--gateway-msi</code></td><td>install, install-side-by-side, update</td><td>Devolutions Gateway installer (<code>.msi</code>) to use. Without it, the latest version is downloaded.</td></tr><tr><td><code>--gateway-release-type</code></td><td>install, install-side-by-side, update</td><td><code>Current</code> (default) or <code>Beta</code>.</td></tr><tr><td><code>--dps-path</code> (alias <code>--dps</code>)</td><td>install-side-by-side</td><td>The IIS path of the Devolutions Server web application, for example <code>"Default Web Site/dvls"</code>, or the physical path of its root folder.</td></tr><tr><td><code>--gateway-server-name</code></td><td>install-side-by-side</td><td>Gateway name in Devolutions Server. Default: "Devolutions Gateway".</td></tr><tr><td><code>--gateway-server-description</code></td><td>install-side-by-side</td><td>Gateway description. Default: empty.</td></tr><tr><td><code>--gateway-external-url</code></td><td>install, edit</td><td>External URL (access URI) of the gateway. Required for <code>install</code>; scheme <code>http</code> or <code>https</code>.</td></tr><tr><td><code>--gateway-http-port</code></td><td>install, install-side-by-side, edit</td><td>HTTP(S) listener port. Default: 7171.</td></tr><tr><td><code>--gateway-tcp-port</code></td><td>install, install-side-by-side, edit</td><td>TCP listener port. Default: 8181.</td></tr><tr><td><code>--gateway-listener-enable-https</code></td><td>install, edit</td><td>Switch, without a value: use HTTPS on the HTTP listener. Off when omitted. Requires a certificate.</td></tr><tr><td><code>--gateway-certificate-source</code></td><td>install, edit</td><td><code>External</code> (certificate file) or <code>System</code> (Windows certificate store).</td></tr><tr><td><code>--gateway-certificate</code></td><td>install, edit</td><td>Certificate file.</td></tr><tr><td><code>--gateway-certificate-password</code></td><td>install, edit</td><td>Password of the certificate file.</td></tr><tr><td><code>--gateway-certificate-private-key</code></td><td>install, edit</td><td>Private key file of the certificate.</td></tr><tr><td><code>--gateway-certificate-store-location</code>, <code>--gateway-certificate-store-name</code>, <code>--gateway-certificate-subject-name</code></td><td>install, edit</td><td>Certificate in the Windows certificate store, with <code>--gateway-certificate-source System</code>.</td></tr><tr><td><code>--gateway-provisioner-public-key-file-path</code> or <code>--gateway-provisioner-public-key-base64</code></td><td>install, edit</td><td>Devolutions Server public key, as a file or as Base64 text. Required for <code>install</code>.</td></tr><tr><td><code>--gateway-recording-path</code></td><td>install, install-side-by-side, edit</td><td>Recording storage folder.</td></tr><tr><td><code>--gateway-id</code></td><td>edit</td><td>Gateway ID written in the gateway configuration.</td></tr></tbody></table>

Example, side-by-side with the default ports:

```powershell
.\DPS.Console.CLI.exe gateway install-side-by-side --dps-path "Default Web Site/dvls" --gateway-server-name "Gateway HQ"
```

Example, standard installation with HTTPS and a certificate from the Windows certificate store:

```powershell
.\DPS.Console.CLI.exe gateway install --gateway-external-url "https://gateway.example.com:7171" --gateway-listener-enable-https --gateway-certificate-source System --gateway-certificate-subject-name "gateway.example.com" --gateway-provisioner-public-key-file-path "C:\temp\gateway_public_key.pem"
```

{% hint style="warning" %}
Values typed on a command line, such as `--gateway-certificate-password`, can be seen by other processes on the machine and may stay in the shell history. Prefer a certificate from the Windows certificate store, or a JSON response file (`.\DPS.Console.CLI.exe @<file>.json`) that you protect and delete afterwards. `/help` lists every command and option.
{% endhint %}

## Messages

<table><thead><tr><th width="420">MESSAGE</th><th>MEANING</th></tr></thead><tbody><tr><td>"Devolutions Gateway external url is mandatory"</td><td>Enter an access URI.</td></tr><tr><td>"Devolutions Gateway external url scheme has to be http or https"</td><td>The access URI must start with <code>http://</code> or <code>https://</code>.</td></tr><tr><td>"Devolutions Gateway external url scheme has to be https if server listener enables https"</td><td>With an HTTPS listener, the access URI must use <code>https://</code>.</td></tr><tr><td>"Certificate is mandatory when using HTTPS"</td><td>Choose a certificate for the HTTPS listener.</td></tr><tr><td>"Certificate file path is mandatory when using file-based certificate"</td><td>Select the certificate file.</td></tr><tr><td>"Certificate subject name is mandatory when using Windows Store certificate"</td><td>Enter or select the certificate subject name.</td></tr><tr><td>"Devolutions Gateway certificate password is mandatory with the certificate file."</td><td>Enter the password of the <code>.pfx</code> or <code>.p12</code> file.</td></tr><tr><td>"Devolutions Gateway certificate private key is mandatory with the certificate file."</td><td>Select the private key file of the <code>.pem</code> or <code>.crt</code> certificate.</td></tr><tr><td>"Devolutions Gateway provisioner public key is mandatory"</td><td>Choose the Devolutions Server public key.</td></tr><tr><td>"Devolutions Gateway recording path is invalid"</td><td>Enter a valid folder path.</td></tr><tr><td>"Unable to reach Update Server. See logs for more information."</td><td>The Console cannot download the version list or the installer. Use <em><strong>Install from msi file</strong></em>.</td></tr><tr><td>"The digital signature could not be verified. A file for which you don't know the source should not be trusted and installed. Do you want to continue?"</td><td>The installer file is not signed by Devolutions. Download it again from devolutions.net.</td></tr><tr><td>"Failed to start Devolutions Gateway service"</td><td>Check the gateway logs in <code>%ProgramData%\Devolutions\Gateway</code> and the Windows Application event log (source "Devolutions Gateway").</td></tr><tr><td>"Devolutions Gateway server is not installed, it can't be uninstalled."</td><td>Nothing to uninstall on this machine.</td></tr><tr><td>"Failed to stop the Devolutions Gateway service. Please close any applications using the service and try again."</td><td>Close the tools that use the service, then uninstall again.</td></tr><tr><td>"The service is marked for deletion but not yet fully removed. It will be removed after all open handles are closed (close services.msc, Task Manager, etc.)."</td><td>Close the Services console and Task Manager; the service disappears when they are closed.</td></tr></tbody></table>

A side-by-side installation that fails with "Method not found" needs Windows PowerShell 5.1: see [Side-by-side installation method not found](https://docs.devolutions.net/gateway/help/troubleshooting/side-by-side-method-not-found.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/devolutions-server/install-from-console.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.
