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

# Network scan

Scan remote networks from Devolutions Gateway to discover hosts and services, and import them in Remote Desktop Manager as entries that use the gateway.

Devolutions Gateway can scan the network it is connected to and report the hosts and services it finds. Remote Desktop Manager uses this to discover machines on a remote network without a VPN, and to import them as entries that already go through that gateway. The standalone web application of Devolutions Gateway uses it to suggest hosts.

## Scan a remote network from Remote Desktop Manager

The scan from a gateway is available with Devolutions Server workspaces. The user needs the permission to use the gateway: otherwise Devolutions Server refuses the scan and logs "Network scan token issuance denied".

1. In Remote Desktop Manager, open the network scan. See [Network scan](https://docs.devolutions.net/rdm/ribbon-menu-bar/tools/network-scan) or [Import with network scan](https://docs.devolutions.net/rdm/ribbon-menu-bar/file/import/import-with-network-scan).
2. In ***Scan from***, choose the gateway instead of ***Local Computer***. Several origins can be selected.
3. With one gateway selected, choose the source in ***on network interface*** (***Source / Interface / IP***): the network interfaces of the gateway machine.
4. Set the ***IP range*** (***Start address*** to ***End address***), or keep the range of the selected interface.
5. Click ***Start***.

Results found from a gateway show ***Gateway*** as their source. When you import them, Remote Desktop Manager creates entries that use Devolutions Gateway: ***VPN/tunnel/gateway*** set to the ***Devolutions Gateway*** provider with the gateway of the scan, and ***Connect*** set to ***Always connect***.

Messages:

<table><thead><tr><th width="400">MESSAGE</th><th>MEANING</th></tr></thead><tbody><tr><td>"Could not generate a gateway network scan token."</td><td>Devolutions Server refused the scan, usually because the user may not use the gateway.</td></tr><tr><td>"Could not start the gateway network scan."</td><td>Remote Desktop Manager could not reach the gateway, or the gateway refused the scan.</td></tr></tbody></table>

## What the gateway scans

The scan runs on the Devolutions Gateway machine, with its network access and its DNS. It combines these methods:

<table><thead><tr><th width="260">METHOD</th><th>DEFAULT TIMING</th></tr></thead><tbody><tr><td><strong>Ping</strong> of each address</td><td>One ping every 200 ms, 500 ms timeout.</td></tr><tr><td><strong>Broadcast</strong> ping on the subnet</td><td>1000 ms timeout.</td></tr><tr><td><strong>NetBIOS</strong> name queries</td><td>One query every 200 ms, 1000 ms timeout.</td></tr><tr><td><strong>mDNS / ZeroConf</strong> discovery</td><td>5000 ms query.</td></tr><tr><td><strong>DNS</strong> resolution of the hosts found</td><td>—</td></tr><tr><td><strong>TCP port probes</strong></td><td>1000 ms timeout per port.</td></tr></tbody></table>

By default, the TCP probes check these ports: 22 (SSH), 23 (Telnet), 80 (HTTP), 443 (HTTPS), 389 (LDAP), 636 (LDAPS), 3283 and 5900 (ARD and VNC), 3389 (RDP), 5985 and 5986 (WinRM). One range can cover at most 65,536 addresses.

{% hint style="warning" %}
A network scan sends many packets from the Devolutions Gateway machine. Security tools on the network can flag it as suspicious: inform your security team before scanning, and limit the range to the networks you need.
{% endhint %}

## Scan from the standalone web application

In the standalone web application, Devolutions Gateway scans its network and lists the hosts it finds in a ***Servers found (N)*** panel beside the connection form. Selecting a host pre-fills the connection 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." See [Use the standalone web application](https://docs.devolutions.net/gateway/guides/standalone-web-app.md).

## Good to know

* Each scan needs a short-lived authorization from Devolutions Server for that gateway. Devolutions Server logs each one ("Network scan token issued", event 106008) and each refusal ("Network scan token issuance denied", event 106007), with the user and the gateway.
* The scan uses the WebSocket connection of the Devolutions Gateway HTTP listener: Remote Desktop Manager must reach the gateway URL.
* The network interfaces of the gateway are reported with their type (ethernet, Wi-Fi, loopback, virtual), so you can pick the right one for the scan.


---

# 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/network-scan.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.
