All tutorials

Business deployment

Private relay server on Linux and Raspberry Pi

Install the Remotly relay as a systemd service on any Linux distribution — including low‑power devices like a Raspberry Pi.

Why run your own relay?

Opening your main PC to the internet with port forwarding is a security risk, and leaving it on around the clock wastes power. A small Linux server or Raspberry Pi relay gives you the lowest possible latency, no port forwarding to the PCs you access, less power consumption, no GDPR concerns about third‑party servers and Wake‑on‑LAN from outside your network. Even if the relay is attacked, all data passing through it is encrypted with keys the server never has.

This guide assumes you already have SSH access to the Linux machine and the necessary permissions.

Installation

  1. Connect to the server over SSH (for example with OpenSSH, WinSCP or FileZilla). All following commands run on the server.
  2. Download the relay: wget https://downloads.mirillis.com/files/beta/remotly‑relay.zip
  3. Unzip it: unzip remotly‑relay.zip (install unzip first with sudo apt‑get update && sudo apt‑get install unzip if needed).
  4. Set permissions: sudo chmod 755 -R remotly && sudo chown root:root -R remotly
  5. Move the files: sudo mv remotly /srv
  6. Edit the configuration and set the port: nano /srv/remotly/config/remotly‑relay.json — we recommend the standard HTTPS port 443 to avoid access problems.
  7. Run the installer: sudo bash /srv/remotly/script/installremotlyrelay.sh
  8. Start the service: sudo bash /srv/remotly/script/startremotlyrelay.sh
  9. Verify it is running: systemctl list‑units --type=service --state=running — remotly‑relay.service should be on the list.
wget https://downloads.mirillis.com/files/beta/remotly‑relay.zip
unzip remotly‑relay.zip
sudo chmod 755 -R remotly
sudo chown root:root -R remotly
sudo mv remotly /srv
nano /srv/remotly/config/remotly‑relay.json
sudo bash /srv/remotly/script/installremotlyrelay.sh
sudo bash /srv/remotly/script/startremotlyrelay.sh
systemctl list‑units --type=service --state=running

Add the relay to your account

Sign in at remotly.com, open Custom Relays and add your server's public IP and port(s). From now on all your Connect Anywhere connections use your own server.

Custom relays panel in the Remotly user panel

Questions? Visit the Remotly community.

This website uses cookies to improve your experience while you navigate through the website. Out of these, those that are categorized as necessary are stored on your browser and are used to run basic functionalities of the website.

We also use third‑party cookies that help us analyze and understand how you use this website. They will only be stored in your browser with your consent and you have the opportunity to opt out of them. However, opting out may affect your browsing experience.

NecessaryAlways active

Necessary cookies are absolutely necessary for the website to function properly. These cookies ensure basic functionalities and security features of the website on an anonymous basis.

CookieRetention periodDescription
cookie_consent1 yearStores whether or not the user has consented to the use of cookies. It does not store any personal data.
NEXT_LOCALE1 yearStores language setting selected by user.
themeuntil clearedStores the light or dark theme selected by user (browser storage).
hCaptchasessionSet by the hCaptcha service on the contact and order forms to identify bots and protect the website against spam.
device_token6 monthsCookie used for user/device verification.
session_idsession / 1 monthCookie used to keep user session alive.
logged_insession / 1 monthCookie used to keep user session alive.