This page is in English — onze technische documentatie voor ontwikkelaars en beheerders is in het Engels.

Relay Laatst gecontroleerd:

Lesson: what a Relay is, and what you need

The four parts of a Viaalink Relay setup (visitor, domain, Relay, device), the four words the dashboard uses, and the three things to get before you install. The text of the film "What a Relay is, and what you need".

Bekijk de film op YouTube (Engels) (2:43) Opent YouTube in een nieuw tabblad.

After this lesson you know the four parts of a Relay setup, and what to get before you install. It takes a few minutes, and you need nothing yet.

1. The picture

Start with the person who wants to open your app. We call them the visitor. They type an address in a browser, such as https://notes.relay.example.com, and their request has to end up at your app.

The request passes three stops:

  1. Your domain, which tells the internet where your Relay is.
  2. Your Relay, a program on your NAS or on a server.
  3. The device, the computer where the app runs.

One thing is the other way round. The device connects out to your Relay, and keeps that connection open. The Relay sends the visitor’s request back along it. That is why the device’s own network needs nothing opened: it can sit at home, at the office, or on a train.

2. Four words

Four words come back in every lesson, and in the dashboard:

WordWhat it is
RelayThe program that receives the visitors.
DeviceA computer that joined your Relay with a key of its own.
NameThe address a device holds, like notes.
DomainThe part all names share, here relay.example.com.

So notes.relay.example.com is the name notes under the domain relay.example.com.

Every device can hold names of its own, and all of them sit under your one domain: a second device can hold git, and git.relay.example.com works the same way. You set up the domain once, and every new name works by itself.

3. What you need

Before you install, get three things:

  1. A domain you control, where you can add DNS records. That is how the internet finds your Relay.
  2. A NAS or a server that stays on, because visitors come at any hour.
  3. A router you can forward ports on, if the NAS or server sits behind a router at home or at the office. That is how visitors get through to it.

You also need a free account on viaalink.com, for the license. You create it when you set up your Relay; a Relay runs for 14 days without a license.

4. What runs where

A common mistake is to open ports on the network of the device. That is not needed: the device connects out. The only router that needs forwards is the one in front of your Relay.

The setup goes in this order:

  1. Install your Relay: on ASUSTOR, on a Linux server, or with Docker.
  2. Set up your domain: the wildcard DNS record.
  3. Forward the ports on your router: Requirements and Network Architecture.
  4. Connect a first device: your first device online.

Recap

  1. The picture: visitor, domain, Relay, device. The device connects out to the Relay.
  2. The words: Relay, device, name, domain.
  3. You need a domain, a NAS or server that stays on, and a router you can forward ports on.
  4. Only the Relay’s router needs forwards.

Check yourself

Anna runs her app on her laptop in a café. Which router needs a port forward: the café’s, or the one in front of your Relay?

The one in front of your Relay. Anna’s laptop connects out.

Read on