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

# Use Devolutions Gateway with an external browser

Open Remote Desktop Manager website entries in an external Google Chrome window through Devolutions Gateway, with or without closing Chrome first.

A website entry in Remote Desktop Manager can go through Devolutions Gateway even when it opens in an external browser window instead of a tab of Remote Desktop Manager. On Windows, the external browser must be Google Chrome. Remote Desktop Manager starts Chrome with a proxy configuration that sends the traffic for the website host to a local proxy on `127.0.0.1`, which carries it to Devolutions Gateway. Traffic to other sites opened in that Chrome window does not go through Devolutions Gateway.

## Before you start

* The website entry uses Devolutions Gateway in its ***VPN/tunnel/gateway*** settings, directly or through inheritance. See [Use a gateway in Remote Desktop Manager](https://docs.devolutions.net/gateway/guides/connect/remote-desktop-manager.md).
* The web browser of the entry is Google Chrome, and the entry opens externally (***Display*** set to ***External***).
* No other proxy configuration applies to Chrome (group policy, command-line switches, Chrome settings). Another proxy configuration can override the one Remote Desktop Manager sets, and the website then does not go through Devolutions Gateway.

## Why Chrome must start from Remote Desktop Manager

Chrome reads its proxy configuration only when a new Chrome process starts. When Chrome is already open with the same profile, Remote Desktop Manager's new window joins the running Chrome and its proxy configuration is ignored. You have two options:

<table><thead><tr><th width="260">CHOOSE</th><th>WHAT HAPPENS</th><th>USE IT WHEN</th></tr></thead><tbody><tr><td><strong>Close Chrome first</strong></td><td>Remote Desktop Manager starts a new Chrome process with the gateway proxy. No change to the entry.</td><td>Users rarely keep Chrome open.</td></tr><tr><td><strong>Use a separate user data path</strong></td><td>Chrome runs a separate profile for this entry, in its own process, even when another Chrome window is open.</td><td>Users keep Chrome open all day.</td></tr></tbody></table>

## Open the website without closing Chrome

1. In Remote Desktop Manager, open the ***Properties*** of the website entry that uses Devolutions Gateway.
2. In the ***General*** section, set ***Display*** to ***External***.
3. Open the ***Advanced*** section.
4. Select ***User data path***.
5. Enter a folder for the separate Chrome profile, in a location users can write to.
6. Click ***OK***.

Each entry should have its own folder: Chrome locks a profile folder while it is in use.

## Set the user data path with PowerShell

### For many entries at once

Run this script with [Batch edit](https://docs.devolutions.net/rdm/ribbon-menu-bar/edit/batch-edit) on the selected website entries. It gives each entry its own folder, named after the entry ID.

```powershell
$connection.Web.UseUserDataPath = $true;
$connection.Web.UserDataPath = "C:\MyPath\" + $connection.ID;
$RDM.Save();
```

### Only while the entry is open

To set the path when the entry opens, without saving it in the entry, use a PowerShell script in the ***Before open*** event. See [Execute a PowerShell script before opening a connection](https://docs.devolutions.net/rdm/knowledge-base/how-to-articles/execute-a-powershell-script-before-opening-a-connection).

```powershell
$RDM.Connection.Web.UseUserDataPath = $true
$RDM.Connection.Web.UserDataPath = "C:\MyPath\" + $RDM.Connection.ID
```

To delete the folder when the entry closes, use this script in the ***On close*** event:

```powershell
$connectionID = $RDM.Connection.ID
Remove-Item -Path "C:\MyPath\$connectionID" -Recurse -Force
```

{% hint style="warning" %}
Deleting the user data path also deletes everything Chrome kept in that profile, such as cookies and saved sign-ins for the website.
{% endhint %}

## Good to know

* Opened in a Remote Desktop Manager tab, a website entry can use Microsoft Edge or Google Chrome through Devolutions Gateway. Other browsers show "Website entries via Devolutions Gateway are currently only supported when using Microsoft Edge or Google Chrome web browsers."
* On macOS and Linux, Remote Desktop Manager sets the proxy of the website entry to the local Devolutions Gateway proxy.
* To browse several internal websites, or to use another browser or application, open a [Devolutions Gateway tunnel entry](https://docs.devolutions.net/gateway/guides/connect/tunnel-entry.md) with an HTTP or SOCKS5 listener and point the browser to it.


---

# 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/connect/external-browser.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.
