Host Deployment

A RemoteRF host is a lightweight Linux computer (such as a Raspberry Pi) that connects one or more USB or Ethernet SDRs back to a central RemoteRF server. When the central server is a Global Deployment, hosts can connect either over your local network/VPN or over the internet from any off-site location, and a single server can manage many hosts across rooms, buildings, or remote field sites.

A Raspberry Pi acting as a RemoteRF host to bridge remote SDRs to a central server.
A Raspberry Pi acting as a RemoteRF host to bridge remote SDRs to a central server.

Prerequisites

Before setting up a host, make sure your main server is running (Server Deployment) and that you have:

  • A Linux computer for the host, such as a Raspberry Pi 4/5 or compact desktop running Ubuntu 24.04 LTS.
  • One or more supported SDRs to connect to the host.
  • Python 3 with Conda (or Miniconda) and a dedicated remoterf-host environment.
  • Outbound internet access (or local network access) to the server, plus openssh-client installed (sudo apt install -y openssh-client) so the host can serve clients over the internet via a Global relay sub-slot when needed.

Need help preparing the host machine? Open any of the reference guides below:

1. Installing Ubuntu 24.04 LTS

We recommend Ubuntu 24.04 LTS (Desktop or Server) on the host machine.

2. Installing Python and Conda

Install base system packages and check the host CPU architecture:

sudo apt update
sudo apt install -y python3 python3-pip python3-venv curl bzip2 openssh-client
uname -m

On ARM64 (aarch64, such as a 64-bit Raspberry Pi), install Miniconda with:

cd /tmp
curl -fsSLO https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh
bash Miniconda3-latest-Linux-aarch64.sh -b -p "$HOME/miniconda3"

On Intel/AMD (x86_64), use:

cd /tmp
curl -fsSLO https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p "$HOME/miniconda3"

Initialize Conda:

source "$HOME/miniconda3/etc/profile.d/conda.sh"
"$HOME/miniconda3/bin/conda" init bash
source ~/.bashrc
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r

3. Checking Server Reachability

When connecting over LAN, Wi-Fi, or VPN, verify from the host terminal that it can reach both the server's main port and certificate port (for example, 192.168.1.50 on ports 61005 and 61006):

nc -vz 192.168.1.50 61005
nc -vz 192.168.1.50 61006

If the central server is an active Global Deployment and the host is on an external network without LAN/VPN access, verify that the host can reach the deployment's Global relay port instead:

nc -vz <deployment>.global.remoterf.net 12321

Installation & Configuration

On the host machine, open a terminal (locally or over SSH), create the remoterf-host environment, and activate it:

conda create -n remoterf-host -y python=3.12 pip
conda activate remoterf-host

1. Install remoterf-host

Install the host package and verify that the hostrf CLI is available:

python -m pip install -U pip
python -m pip install remoterf-host
hostrf --help

2. Create a Host Token on the Server

Choose a unique identifier for this host (such as lab-host-0) and generate its authentication token on the RemoteRF server (use --force if rotating an existing host’s token):

# Run on the server (or `hosts token lab-host-0` in server@remoterf:):
serverrf hosts token lab-host-0

The server stores the token in ~/.config/remoterf/db/hosts_auth.env and prints the hostrf commands to run on the host:

Host token created and stored at ~/.config/remoterf/db/hosts_auth.env
On the host, run:
  hostrf --host --set lab-host-0 "Vn7Kx3QpL9s"
  hostrf --config --addr 192.168.1.50:61005 --ca-sha256 <sha256>   (hostrf 1.3+)

Make sure serverrf -s (or serverrf --serve) is running on the server before continuing.

3. Configure the Host Token and Server Address

On the host machine, set the host token and configure the server address with the pinned --ca-sha256 fingerprint printed by serverrf hosts token:

# Run on the host (on the lab LAN, or before moving the host off-site):
hostrf --host --set lab-host-0 "Vn7Kx3QpL9s"
hostrf --config --addr 192.168.1.50:61005 --ca-sha256 <sha256>
hostrf --config --show

If the host is already off-site on an external internet connection without LAN access to the server, point --addr at your deployment’s Global hostname instead:

# Run on an off-LAN internet host (requires an active Global Deployment):
hostrf --host --set lab-host-0 "Vn7Kx3QpL9s"
hostrf --config --addr <deployment>.global.remoterf.net:12321 --ca-sha256 <sha256>
hostrf --config --show

Once a host connects to a Global Deployment, it records the deployment’s Global identity. If the host is later moved off-campus where the LAN IP is unreachable, hostrf automatically falls back to the deployment’s published Global routes. During active reservations, clients stream IQ samples directly to and from the host (or via a dedicated Global relay sub-slot for that host, up to 8 per deployment) without routing through its corresponding central server.

4. Start the Host and Verify Connection

Start the host process on the host machine:

hostrf --serve

Then, in the running server@remoterf: prompt on the server, check that the host tunnel is online:

hosts status

Next Steps