> For the complete documentation index, see [llms.txt](https://wiki.datadike.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.datadike.com/sonar/deploy-operate/network-requirements.md).

# Network requirements

The outbound connections a managed endpoint opens: the SONAR API address and the remote access address on 443, plus the third-party destinations the agent uses.

## What this page covers

The firewall and proxy rules a **managed endpoint** needs. Every connection below is **outbound from the endpoint**: nothing connects into the device, and no inbound port has to be opened on it or on its network.

The SONAR server itself is operated by DataDike. Its addresses are provided by DataDike for your instance, and nothing on this page is configured on it.

## The two SONAR addresses

Each instance has two addresses that endpoints must reach. DataDike provides both when the instance is delivered. On this page they appear as placeholders:

| Placeholder          | What it is                                                                                                                                                  |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `api.example.com`    | The **API address**. The agent registers, reports and receives commands through it. It is the address embedded in every installer the console generates     |
| `remote.example.com` | The **remote access address**. The remote access agent keeps its connection to it, and remote control, the remote terminal and file transfer run through it |

## Connections the endpoint opens

| From                          | Destination          | Protocol and port                           | What for                                                                                                                                                      |
| ----------------------------- | -------------------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SONAR agent                   | `api.example.com`    | HTTPS, 443/tcp                              | Installation (token check, registration), periodic reports (software inventory, geolocation, check and task results), agent and productivity module downloads |
| SONAR agent                   | `api.example.com`    | Secure WebSocket (WSS), 443/tcp, long-lived | Heartbeat, inventory and every command sent from the console. This connection is what keeps the device **online**                                             |
| Remote access agent           | `remote.example.com` | Secure WebSocket (WSS), 443/tcp, long-lived | Remote control, remote terminal, file transfer and the **Remote Offline** status                                                                              |
| Productivity module (Windows) | `api.example.com`    | HTTPS, 443/tcp                              | Activity and session reports, extension requests                                                                                                              |
| Productivity module (Windows) | `api.example.com`    | Secure WebSocket (WSS), 443/tcp, long-lived | Access policies pushed to the device                                                                                                                          |
| Linux install script          | `api.example.com`    | HTTPS, 443/tcp                              | Download of the agent                                                                                                                                         |
| Linux install script          | `remote.example.com` | HTTPS, 443/tcp                              | Download of the remote access agent                                                                                                                           |

On Windows and macOS the remote access agent is downloaded through the API address during installation; the Linux script downloads it from the remote access address directly.

## Third-party destinations the agent uses

These are not SONAR addresses. The agent contacts them for specific functions; blocking one disables that function only.

| Destination                                                                                | Platform | When                                                                                                               | What happens if it is blocked                         |
| ------------------------------------------------------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------- |
| `checkip.amazonaws.com`, `icanhazip.com`, `ifconfig.co`, `ifconfig.me` (HTTPS)             | All      | Every 5 to 8 minutes, one after the other until one answers                                                        | The device's **Public IP** stays empty or out of date |
| `github.com` (HTTPS, GitHub release downloads)                                             | Windows  | On the agent's first start, when the Python runtime is not present yet                                             | Python scripts cannot run on the device               |
| `github.com` (HTTPS, GitHub release downloads)                                             | All      | Only where the Nushell or Deno script runtimes are enabled for your instance, with DataDike implementation support | Those script types cannot run                         |
| `chocolatey.org`, `community.chocolatey.org` (HTTPS)                                       | Windows  | At service start while Chocolatey is not installed, and when software is installed from the console                | Installing software from the console does not work    |
| The Windows Update source configured on the device (Microsoft Update, or your WSUS server) | Windows  | Patch scans and installs                                                                                           | Windows Update scans and patch installs fail          |

Windows Update traffic follows the device's own Windows Update configuration: the agent drives the Windows Update client on the device, and the client downloads from wherever Windows is set to download.

## Proxies

The agent accepts an HTTP proxy at install time with the `-proxy` argument (`-proxy "http://proxyserver:port"`), listed under **Optional Arguments** in the manual installation instructions. The proxy is stored in the agent configuration and used for:

* the installation requests and the downloads the agent makes, including agent updates;
* the agent's HTTPS requests to the API address;
* on Windows, the installation of the remote access agent.

The long-lived WebSocket connection to `api.example.com` is opened directly, not through that proxy. A device behind a proxy therefore still needs a direct outbound route to `api.example.com` on 443/tcp. The productivity module also connects directly.

## TLS inspection and web filtering

Both SONAR addresses carry long-lived WebSocket connections. Proxies, firewalls and web filters that inspect TLS, terminate idle connections quickly, or do not allow the WebSocket upgrade break them, and the device shows as offline or **Remote Offline** even though HTTPS requests still work.

* Exclude `api.example.com` and `remote.example.com` from TLS inspection.
* Allow WebSocket upgrades to both addresses.
* Allow the connections to stay open indefinitely. The agent sends a keepalive about every 35 to 45 seconds and reconnects automatically after a drop.

## How to verify it worked

From the endpoint, before or after installing:

* **Windows**, in PowerShell: `Test-NetConnection api.example.com -Port 443` and `Test-NetConnection remote.example.com -Port 443` must both report `TcpTestSucceeded : True`. The PowerShell installer runs the same test against the API address and prints *Unable to connect to server* when it fails.
* **Linux and macOS:** `curl -sS -o /dev/null -w "%{http_code}\n" https://api.example.com/` and the same for `https://remote.example.com/` must return an HTTP status code rather than a connection error.

After installation, the device appears in **Dashboard › Sysadmin** with **Agent Status** **Online**, and its details panel shows no **Remote Offline** pill once the remote access agent has connected.

## Common errors

| Symptom                                                                                               | Cause                                                                               | Fix                                                                                         |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| The PowerShell installer prints *Waiting for network* three times, then *Unable to connect to server* | The endpoint cannot open 443/tcp to the API address                                 | Open outbound 443/tcp to `api.example.com` and check name resolution                        |
| The device registers but never shows **Online**, or drops to offline repeatedly                       | The WebSocket connection to the API address is blocked, inspected or cut by a proxy | Allow a direct, uninspected 443/tcp connection with WebSocket upgrades to `api.example.com` |
| The device is online but shows **Remote Offline**, and remote control does not open                   | The remote access agent cannot reach the remote access address                      | Allow outbound 443/tcp with WebSocket upgrades to `remote.example.com`                      |
| **Public IP** is empty                                                                                | All the public IP lookup services are blocked                                       | Allow at least one of them, or accept the empty column                                      |
| Python scripts fail on a new Windows device                                                           | The Python runtime could not be downloaded from GitHub                              | Allow `github.com` downloads, then restart the agent service                                |
| Software installs from the console fail                                                               | Chocolatey cannot be reached                                                        | Allow `chocolatey.org` and `community.chocolatey.org`                                       |

## Related pages

* [Endpoint requirements](https://wiki.datadike.com/sonar/deploy-operate/requirements.md)
* [Install the agent on Windows](https://wiki.datadike.com/sonar/deploy-operate/install-agent-windows.md)
* [Deploy agents at scale](https://wiki.datadike.com/sonar/deploy-operate/mass-deployment.md)
* [Troubleshoot agents](https://wiki.datadike.com/sonar/deploy-operate/troubleshooting.md)
* [Remote access](https://wiki.datadike.com/sonar/administration/remote-access.md)
