Zoomed Image

Set Up the Relay

Endpoint Management Guide

Connect to a Computer

Set Up the Relay

Remote Desktop, Command Prompt and PowerShell run through the xAssets relay. The relay runs on your cloud collection server. Your browser and the agent both connect out to it on port 5200, and the relay passes data between them.

The Remote Relay Server URL setting (RemoteRelayURL) holds the relay's address. Until it is set, every Connect item fails with "RemoteRelayURL special option is not configured".

Set up by the cloud collection server

Setting up a cloud collection server sets up the relay with it.

  1. New Agent Listener in Setup a Collection Server sets Remote Relay Server URL to the Agent Listener's server name on port 5200. An Agent Listener of https://coll1.example.xassets.net:44399 gives https://coll1.example.xassets.net:5200. A value already in the setting is kept.
  2. The collection server installer makes RemoteRelay.exe the xAssets Remote Relay Windows service. The service starts automatically as Local System and restarts after a failure.
  3. The installer opens port 5200 in Windows Firewall with the rule xAssets Remote Relay 5200.

A LAN collection server installs RemoteRelay.exe and does not start it. Uninstalling the collection server removes the service.

Relay requirements

  • The ASP.NET Core 9 runtime on the collection server. Without it the service does not start, and the installer reports "Section 9 (remote relay)".
  • Port 5200 reachable from the computers you connect to and from the browsers of the people who connect.
  • A certificate that browsers trust for the relay's name. The relay takes the first of these from the computer's personal certificate store (LocalMachine\My):
    1. The certificate named in the RELAY_CERT_THUMBPRINT environment variable.
    2. A certificate for the relay's name that Windows trusts, such as a *.xassets.net certificate.
    3. The collection server's own listener certificate. It is self-signed, so browsers refuse it until the operator's computer trusts it.
  • Microsoft Defender on the server. Send File and Get File are refused without it.

Change the address

  1. Go to Endpoints > Endpoints Dashboard > Setup > Settings. The relay settings are in the Remote group. Admin > Settings lists them too.
  2. Select Remote Relay Server URL (RemoteRelayURL) and click Edit Setting.
  3. Enter the relay's address with https:// and the port, for example https://relay.example.xassets.net:5200.
  4. Save.

One address serves every computer. The agent on each computer must be able to reach it. With two cloud collection servers, the address stays on the first one set up until you change it.

Accepted names

The relay, the agent and the browser window each check the name in the address.

Name in the address Relay and agent Browser window
A name under xassets.net Accepted Accepted
The relay server's own computer name, such as https://RELAY01:5200 Accepted Accepted only when you open xAssets at localhost
localhost Accepted Accepted only when you open xAssets at localhost
An IP address or any other domain Refused Refused

A different address for the browser

The RemoteRelayURLBrowser setting gives the browser its own address for the relay. The agent still uses RemoteRelayURL. When it is empty, the browser uses RemoteRelayURL too.

Use it when xAssets and the relay run on the same server and you open xAssets at localhost. Set RemoteRelayURL to https://RELAY01:5200 for the agents. Set RemoteRelayURLBrowser to https://localhost:5200 for the browser. It is in the Remote group under Endpoints > Endpoints Dashboard > Setup > Settings.

Checks before a session starts

xAssets tests the relay address before it sends anything to the agent. A failed test shows one of these messages, and no job is created.

Message begins What to do
"The RemoteRelayURL special option ... is not a valid address" Enter the full address, for example https://server:5200.
"The relay server name ... cannot be found" Correct the server name in the setting.
"The remote relay is not running on" Start the xAssets Remote Relay service on that server.
"The remote relay at ... did not answer within 3 seconds" Check the server is on and a firewall allows port 5200.
"Port ... is in use by something other than the remote relay" Another program holds the port. Correct the address, or stop that program.
  • RemoteConsentAlways: asks the user at every computer for consent, servers included. See Remote Desktop.