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

Relay Laatst gecontroleerd:

Troubleshooting

What to check when a device cannot connect to your Viaalink Relay, an address does not open, an address only fails inside your own network, a certificate is not issued, a port is already in use, an SSH alias is not found, or the license reports a problem.

Where to start

Find the part that fails, then go to its section:

What you seeWhich partSection
The client cannot log in, times out, or is refusedDevice ↔ RelayA device cannot connect
The client is connected, but the address does not openVisitor ↔ addressAn address does not open
The address works for people outside, but times out inside the Relay’s own networkYour routerAn address times out inside your own network
The browser warns about the certificateThe Relay’s HTTPSThe HTTPS certificate is not issued
The Relay does not startThe Relay machineA port is already in use
ssh -J closes right after the RelaySSH client ↔ Relay ↔ deviceAn SSH alias is not found
The setup page shows a license messageThe licenseLicense problems

The three kinds of connection are explained on Three Kinds of Connection.

A device cannot connect

First ask the Relay to describe itself with your key. This logs in, reads what the Relay serves, and publishes nothing:

bash
  • It answers with the Relay’s domains: the network and your key are fine. The Relay’s built-in client verifies the host key only when you pass --host-key-fingerprint (fingerprints are listed at /_relay/discovery). Without it, it prints a warning and does not check. The via CLI pins the key automatically when you enrol. Look at the address you ask for instead (An address does not open).
  • It times out: the device cannot reach the Relay’s SSH port. Check that 2222 is forwarded on the Relay’s router and allowed by its firewall, and that the network the device is on allows outgoing connections to that port. Some office and hotel networks only allow web ports.
  • Permission denied: the Relay does not know this key. Approve the public half (.pub), as described in Access Control and Security. A laptop that jumps to a private alias needs its own approved key, too.

With OpenSSH, ssh -v -p 2222 relay.example.com shows the same steps in detail. Other causes:

  • Too many keys. The Relay allows three login tries per connection. When your SSH agent offers several keys, the right one may never get its turn. Name the key and offer only that one: ssh -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519 -p 2222 relay.example.com.
  • Slow login. A device must finish logging in within five seconds (--cleanup-unauthed-timeout), or the Relay closes the connection.
  • IP or country rules. Rules set with --banned-ips, --whitelisted-ips, --banned-countries or --whitelisted-countries apply to devices as well as visitors. A device outside an allowed network or country is refused before it can log in.
  • Free plan limit. Free allows 3 connected devices (up to 10 connections). When a device beyond that connects, or a connection beyond that is opened, the connection is refused with a message. A new Relay without a license refuses new devices after 14 days — see License problems.

An address does not open

Read the address from the latest output of the client: OpenSSH shows the Relay’s welcome text (leave out -N to see it), via prints the address. Then match what the browser shows:

The browser showsMeaningWhat to do
“Server not found”The name does not resolveAdd the wildcard record *.relay.example.com (DNS Configuration) and wait for it to spread
404Nothing is published under this name right nowThe client is not connected, or the name changed after a reconnect — read the current address
502 Bad GatewayThe Relay reached the device, but nothing answers on the local portStart the app, or fix the local port in the forward
403 ForbiddenAn IP or country rule blocks this visitorSee IP and country rules
A password promptThe link has a passwordExpected — see Password per link

The name is not the one you asked for. With --bind-random-subdomains on (the default), the Relay gives every web address a random three-letter name and tells the client so (“The subdomain … is unavailable. Assigning a random subdomain.”). Turn it off on the Relay to let devices keep the names they ask for. With --force-requested-subdomains on as well, a name that is already taken makes the request fail instead of falling back to a random one — OpenSSH then prints Warning: remote port forwarding failed for listen port 80.

Only an http:// address is shown. The welcome text lists an HTTPS: line only when the Relay serves HTTPS: through Caddy (--caddy-https-enabled), its own listener (--https), or a proxy in front that handles HTTPS (--proxy-ssl-termination). Set up HTTPS as described in your installation guide.

An address times out inside your own network

Symptom: a link served by your Relay, such as a meeting link, opens for guests elsewhere, but on a computer in the same network as the Relay the browser does nothing and eventually times out. A phone on the same wifi has the same problem.

The cause is your router. The Relay’s names resolve to your public IP address, and the router forwards traffic from the internet to the Relay. Traffic from inside your network to your own public IP address only comes back in when the router supports NAT loopback (also called hairpin NAT), and many home and small-office routers do not.

Check it by asking the Relay directly on its LAN address, from a computer in that network. Replace 192.168.1.20 with the Relay’s LAN IP address and use the address that fails:

bash

When this answers, the Relay is fine and only the route through the router fails. Fix it in one of these ways, best first:

  1. Split-horizon DNS. On your router or your own DNS server, let relay.example.com and *.relay.example.com resolve to the Relay’s LAN IP address inside your network. Every device in the network then reaches the Relay directly, and outside nothing changes.

  2. NAT loopback on the router. If your router has the setting (often called NAT loopback, NAT reflection or hairpin NAT), switch it on.

  3. A hosts line per computer. Add the Relay’s LAN IP address with the names you use to the hosts file: /etc/hosts on Linux and macOS, C:\Windows\System32\drivers\etc\hosts on Windows. A hosts file has no wildcards, so list each name:

    text

Phones usually cannot change their hosts file. Until the network has split-horizon DNS or NAT loopback, open the link on mobile data instead of the wifi.

The HTTPS certificate is not issued

The Relay (or Caddy in front of it) gets its certificates from Let’s Encrypt. When the browser warns about the certificate, check in this order:

  1. DNS. Both relay.example.com and *.relay.example.com point at the Relay’s public address. If you have an AAAA (IPv6) record, it must point at the Relay too: Let’s Encrypt tries IPv6 first. On Cloudflare, set both records to DNS only (grey cloud).
  2. Port 80. For single-name certificates, Let’s Encrypt checks over plain HTTP on port 80. Forward it to the Relay machine, even if visitors only use 443.
  3. Wildcard certificates. A certificate for *.relay.example.com needs the DNS check instead: your DNS provider’s credentials must be set. See Certificate lifecycle and DNS-01.
  4. Certificates per address. When certificates are issued for each address as it is first opened, Caddy first asks the Relay whether that address exists (/_relay/domain-check). The Relay only says yes for an address that is published at that moment — publish first, then open it.
  5. Rate limits. Let’s Encrypt limits how many certificates and failed attempts it accepts per domain over a period. After many failed tries, fix the cause above and wait before trying again.

The Relay’s and Caddy’s logs show the reason Let’s Encrypt gave; see Relay Operations and Maintenance.

A port is already in use

If the Relay stops right after starting, its log says which listener failed, followed by address already in use:

text

Find the program that holds the port (here 2222):

bash

Common cases:

  • A web server already uses 80 and 443. Let the Relay listen on :8080 and :8443 (--http-address, --https-address) and put Caddy, or your existing web server, in front — as in the Docker and Linux guides.
  • A second Relay is still running, for example an old service next to a new container. Stop one of them.
  • Your own SSH server uses 2222. Move one of the two; the Relay’s SSH port is set with --ssh-address. Devices then connect to the new port.

On the device side, a requested public TCP port can be taken too. With --bind-random-ports on (the default) the Relay picks a free port from --port-bind-range; with it off, a port that is taken makes OpenSSH print Warning: remote port forwarding failed for listen port.

An SSH alias is not found

Symptom: ssh -J relay.example.com:2222 alice@mybox fails at once, before the machine asks for anything. The Relay’s log shows Refused a channel with reason no such name. Your login to the Relay itself stays up.

Check:

  1. Is the machine connected? Its ssh -R mybox:22:localhost:22 (or viaalink-relay connect -F mybox:22:localhost:22) must be running. Leave out -N on the machine to see the welcome text with its TCP Alias: line.
  2. Did it get the name you use? With --bind-random-aliases on (the default), the alias gets a random name such as k3x:22, new on every reconnect. Turn it off on the Relay, and turn on --force-requested-aliases so a taken name fails loudly.
  3. Do name and port match? HostName mybox in ~/.ssh/config is the alias name, not a DNS name. If the machine published mybox:2200, add Port 2200.
  4. Is your key allowed? With --tcp-aliases-allowed-users on, only the keys the machine listed can reach its alias.
  5. Is it the four-part form? With the built-in client, -F mybox:22 means a web address pointing at local port 22, not an alias. Use name:port:host:port.

The full guide is SSH through the Relay.

License problems

The setup dashboard (/_relay/dashboard) shows the license status in the license block at the bottom of the sidebar (the dashboard layout, Free device limits, and license messages described here are in Relay v1.36.0 and later, and in the ASUSTOR package 0.62.7 and later). A Relay without a valid license runs with the Free limits for 14 days after its first start; the license status shows the days left. After that it refuses new devices (devices already connected stay) until you activate it: Free needs a free account and a Free license from viaalink.com/account (Free). What the messages mean:

MessageWhat to do
This license is activated on another machine. Re-activate or move it at viaalink.com/account.A license is bound to the machine it was activated on. Move the license in your account at viaalink.com/account (3 times per 30 days) and re-activate the new machine.
Invalid or expired license. The Relay runs with Free limits.Check your license status or renew it at viaalink.com/account. The Relay continues running under Free limits.
The system clock is behind the license issue date.The server system clock is incorrect. Turn on automatic time sync (NTP) so license dates can be checked.
Redundancy off: the domain does not match the license.Redundancy requires the configured Relay domain to match the domain specified in the license.

When the Free plan limit is reached (3 connected devices (up to 10 connections)), a connecting client is refused and its SSH client shows one of:

This Relay runs the Free plan: 3 devices, and all 3 are connected. Add a license at viaalink.com/relay

This Relay runs the Free plan: 3 devices with up to 10 connections, and all 10 are in use. Add a license at viaalink.com/relay

Visitors who open your addresses are never counted. More on plans and moving a license: Relay Licensing.

Calls through firewalls do not connect

Calls in Viaalink Social use the Relay’s UDP port 3478 and the media ports 49152–49167. Test from a machine outside your network — from inside, the router often loops the request back and it succeeds even when the port is closed:

bash

It prints OK with the address it saw, or FAIL with the reason, and exits with 1 on failure. Add --turn-realm and --turn-secret (the Relay’s values) to also test a media allocation. If it fails, forward the UDP ports from Requirements and Network Architecture to the Relay machine.

Still stuck

Collect the client’s output, the Relay’s log around the time of the problem, and the output of viaalink-relay --version, and send them to info@viaalink.com.