Run your own relay

Our relay is free and already running, so you never have to. If you'd rather your group's traffic passed through a machine you control, one command sets a relay up on a small Linux server.

What a relay does

Every Hollow app connects to one relay. It passes encrypted traffic between people and can't read any of it. When someone is offline, it holds what's waiting for them in memory, for a limited time, and hands it over when they connect. Calls, screen shares and files go directly between people wherever they can.

A relay keeps no message log, no accounts and no record of who talks to whom.

What you need

SystemUbuntu 22.04 or newer, or Debian 12 or newer, on x86_64 or ARM64. Debian is the lighter of the two.
Memory1 GB is enough. The whole setup, with calls, push and the screen share forwarder, used about 340 MB on Debian 13.
ProcessorOne CPU core.
NetworkA public IPv4 address. A machine at home works if your router can forward ports, but not behind carrier-grade NAT.
An addressA free DuckDNS name, the server's bare IP, or a domain you own. The certificate comes from Let's Encrypt and renews itself.
CostA VPS for 3 to 5 euros a month is enough for a group.

One relay held about 572,000 connections at once on an $8 a month VPS. See the benchmark

One command to set it up

Clone the repository on the server and run the setup. It takes about 5 to 10 minutes on a new server.

  • Checks the machine first and tells you whether a relay can work there
  • Asks its questions one screen at a time, says what each option does, and changes nothing until you accept the plan
  • Installs the relay, TURN for calls, push for phones and the screen share forwarder
  • Runs each part under its own account in its own sandbox, the same way the official relay runs
  • Opens the firewall, turns off swap and crash dumps, and keeps logs in memory, so nothing about your members reaches the disk
  • Keeps messages waiting for offline people across restarts and updates of the relay
$ git clone --recurse-submodules \
    https://github.com/VitalikPro13/HOLLOW.git
$ cd HOLLOW
$ sudo bash relay-uws/install.sh
# later: status, updates and settings
$ sudo hollow-relay-setup

Already running a relay with Docker or by hand? The setup finds it and offers to take it over, keeping its settings and keys.

Connect the app

On desktop, open Settings, then Network. Under Relay, choose Change, add your relay's address and choose Switch and restart. On a phone the last button is Switch and close, and the app connects to your relay when you open it again.

Someone new can type your address on the welcome screen and never touch the official relay at all.

The full guide

Every question the setup asks, the ports, setting it up by hand, backups, updates and troubleshooting.

Read the self-hosting guide