---
title: "WebRTC Relay Server — Open Source"
description: "A single-file WebSocket relay that introduces two WebRTC peers with a one-time key, then forgets them. One dependency, zero logging, self-hostable."
url: "https://royalsoftworks.com/products/webrtc-relay-server/"
source: "https://royalsoftworks.com"
format: "markdown"
note: "Markdown rendering of the HTML page at `url`. Same content, same canonical URL."
---

[All products](https://royalsoftworks.com/#products)

Open-Source Infrastructure Out now

# WebRTC Relay Server

Introduces two WebRTC peers, then gets out of the way.

A single-file, one-dependency WebSocket relay that solves WebRTC's bootstrapping problem: two peers need to swap connection details before they can talk directly, but have no channel to do it over until they're already connected. WebRTC Relay Server mints a one-time connection key, relays the handshake, and forgets both peers the moment either one disconnects — which Privatta does as soon as its direct channel opens. It's the signaling server behind Privatta's internet P2P mode — and it's open source, so anyone can run their own instead of trusting ours.

[View source on GitLab](https://gitlab.com/ndagovic/webrtc-relay-server) [See it in Privatta](https://royalsoftworks.com/products/privatta/)

- **Dependency (ws)** — 1
- **Single-use connection key** — 32-char
- **Handshake ceiling** — 5 min
- **IPs, keys, or payloads logged** — 0

More capabilities

## Everything else it does.

### One dependency, forever

Just ws, which has zero transitive dependencies of its own. The entire audit surface is one file plus one well-known library.

### Nothing lingers

A room is deleted the instant either peer disconnects, or after a 5-minute handshake ceiling if nobody ever pairs. No sweep job, no tombstones.

### Deploy your way

One file, no database. Run it via systemd + nginx, Docker, or one-click on Railway, Render, or Heroku.

### Not just for Privatta

It's a generic WebRTC rendezvous point. Any project that needs to introduce two peers and step out of the way can point at it — or fork it.

Also in the suite

[### Privatta Direct, encrypted file transfer with no server in the data path. View product](https://royalsoftworks.com/products/privatta/)

Our hosted instance [https://signal-server-df8l.onrender.com/](https://signal-server-df8l.onrender.com/)

This is the public signaling server behind Privatta's internet P2P mode. Point any WebRTC client at it — or run your own instance from the source above and use that instead.

## More about the relay

- [What it does The bootstrapping problem it solves, one-time keys instead of accounts, and logging that records event names and nothing else.](https://royalsoftworks.com/products/webrtc-relay-server/what-it-does/)
- [Questions we hear often Whether you have to use our instance, whether it is only for Privatta, what the server sees, and what happens if nobody joins.](https://royalsoftworks.com/products/webrtc-relay-server/questions/)

## Talk to the team that actually builds the software.

A trial, a licence, half an hour with someone who built it, or the security form your IT people need filled in. It lands with the engineers, and none of it starts a drip campaign.

[Write to us](https://royalsoftworks.com/contact/) [Download it free](https://royalsoftworks.com/download/) [Buy it without a call](https://royalsoftworks.com/pricing/)

[sales@royalsoftworks.com](mailto:sales@royalsoftworks.com) [office@royalsoftworks.com](mailto:office@royalsoftworks.com)

<!-- verse:royalsoftworks
     Psalmi 62:8
     Narode! Uzdaj se u Njega u svako doba; izlivajte pred Njim srce svoje; Bog je naše utočište.
     https://www.wordproject.org/bibles/verses/serbian/02_prayer.htm
-->
