Connection model
Learn how signaling, WebRTC, relays, and public addresses connect your browser to an agent.
The dashboard talks to an agent over a live connection between your browser and the agent. Enderdash sets up that connection in two phases and can use three different paths for it.
Two phases
- Signaling: the agent registers with the signaling service, and the browser and agent exchange connection details through it.
- Path selection: WebRTC tries IP addresses and ports until it finds a working route.
A server shows Online after the first phase. A live panel needs the second phase too. This is why a server can be Online while its panels fail to load.
Three paths
| Path | How it works | When Enderdash uses it |
|---|---|---|
| Direct WebRTC | The browser and agent exchange data with each other | The two can reach each other's offered ports |
| TURN relay | A relay forwards the WebRTC traffic between the browser and agent | A direct route fails |
| Signaling relay | The signaling service carries the requests over its WebSocket | The WebRTC transport is unavailable |
A relayed connection is a working connection. It is usually slower than a direct one, but it works on more restrictive networks. The signaling service also provides an HTTP transport for single request-and-response calls.
A domain allowlist is often enough for signaling and the relays. It is not enough for a direct connection, because direct traffic goes to the IP addresses and ports that the agent offers.
Connection diagnostics show the signaling connection and the live transport separately. To prove that the whole path works, open a live panel and read fresh data.
Why you can fix the port range
By default, the agent selects ports when it starts a connection. Changing ports make firewall rules hard to write.
The restrictPorts, webrtcMinPort, and webrtcMaxPort values set a fixed range. You can then allow and forward exactly that range.
Why you can set a public address
The agent tries to find its public IP address. Some NAT setups return the wrong address or block the request.
The advertisePublicAddress and publicAddress values set the external address. WebRTC then offers this address when it starts a connection.
Next: network requirements for exact hosts and ports, recover an offline server, or fix failing live panels.
Was this page helpful?
Send a quick note if anything is missing or unclear.
Last updated on