Use this guide to diagnose common issues with server startup, network reachability, remote host tunnels, SDR USB permissions, and user access control.
Startup Issues
serverrf Not Found or Fails to Bind Ports
If serverrf is not found or exits immediately on startup, verify that the remoterf-server Conda environment is active and that the configured TCP ports are unprivileged (1024 or higher):
conda activate remoterf-server
serverrf config list
serverrf --serveIf socket binding fails with Address already in use, check whether another serverrf --serve instance is already running in another terminal or tmux/screen session.
Network Connectivity
Clients or Hosts Cannot Reach the Server
When serverrf --serve is running cleanly on the server but client machines or remote hosts time out connecting, test both the main gRPC port and the certificate port using nc (replace 192.168.1.50 and 61005/61006 with your server’s IP and configured ports):
# 1. Test locally on the server machine:
nc -vz 192.168.1.50 61005
nc -vz 192.168.1.50 61006
# 2. Run the same test from a second machine on the network:
nc -vz 192.168.1.50 61005
nc -vz 192.168.1.50 61006If the local check succeeds on the server but fails from a second computer, check:
- Local firewall rules on the server (
sudo ufw statusoriptables/nftables) - Campus VLAN isolation between Wi-Fi, wired LAN, and VPN subnets
- Whether the server’s TLS certificate was generated for the current static IP (
serverrf certs list) - Whether users and hosts were given the main port (
61005) inremoterf -c -a/hostrf --config --addr, and that the adjacent certificate port (61006) is also open
Host Tunnels & Inventory
Host Tunnel Does Not Appear in hosts status
A RemoteRF host appears in the server shell only after hostrf --serve connects to the server’s main gRPC port, authenticates with its host token, and maintains its heartbeat stream.
On the host, inspect the saved configuration:
hostrf --config --show
hostrf --host --show
hostrf --device --showhostrf --config --showmust pointREMOTERF_ADDRat<server_ip>:<main_port>.hostrf --host --showmust list the expectedHOST_IDand a configured token.
If the server rejects the host token, generate a fresh token on the server and apply it on the host:
# On the server:
serverrf hosts token lab-host-01 --force
# On the host:
hostrf --host --set lab-host-01 "TOKEN_FROM_SERVER"
hostrf --config --addr <server_ip>:<main_port>
hostrf --serveThen check hosts status and devices list in the server@remoterf: shell.
Host Connects, but Host-Attached SDRs Are Missing
When a host appears as online in hosts status but its SDRs do not appear in devices list, either the host failed to open the hardware locally or its device_id conflicted with another device on the server.
- Confirm that the host’s inventory is saved at
~/.config/remoterf/host/devices.yml(custom schema.pyfiles still go in~/.config/remoterf/drivers/). - Verify that every
device_idin~/.config/remoterf/host/devices.ymlis globally unique across the server and all hosts. - To change a conflicting
device_idon a host:
hostrf --device --remove <old_id>
hostrf --device --add --pluto "<new_id>:<device_name>:<serial>"
hostrf --device --show
hostrf --serveDevice Detection & USB Access
SDR Only Appears Under sudo
If hardware discovery tools (iio_info -s, uhd_find_devices, hackrf_info, or rtl_test -t) only detect the radio when run with sudo, serverrf and hostrf will not be able to open the USB device as your normal user account.
For an ADALM-PLUTO, install libiio-utils and configure the plugdev udev rule:
conda install -y -c conda-forge libiio libusb
sudo apt install -y libiio-utils
sudo groupadd -f plugdev
sudo usermod -aG plugdev "$USER"
sudo tee /etc/udev/rules.d/53-adi-usb.rules >/dev/null <<'EOF'
SUBSYSTEM=="usb", ATTR{idVendor}=="0456", MODE="0660", GROUP="plugdev"
EOF
sudo udevadm control --reload-rules
sudo udevadm triggerUnplug and reconnect the USB cable, log out and log back in (or reboot), and confirm that iio_info -s succeeds without sudo. For USRP, HackRF, and RTL-SDR permissions, see the respective guide under Device Setup.
Configured Device Still Shows Offline
If local USB or Ethernet discovery works without sudo but the device is missing or offline in devices list, check:
device_iduniqueness: No two devices across the server and hosts may share the same integerdevice_id.device_typestring: Must match the registered schema (adalm_pluto,adalm_pluto_mimo,bluetooth,gps,hackrf,krakensdr,rfbeam_kmd7,rtlsdr,ti_awr6843,usrp,usrp_phaser,wifi, or your custom@idl_register(...)name).- Hardware selector:
init.serial(orinit.addrfor N210) must match the exact string reported by the native discovery tool. - Automated hardware self-test (
diag): Runserverrf diag(ordiagat theserver@remoterf:console) to execute automated hardware self-tests across all local and host-attached SDRs and inspect per-device failures (--copycopies the diagnostic report to your clipboard). - Process restart: If you edited
devices.ymlor a file indrivers/manually, restartserverrf -sorhostrf -s.
User Accounts & Permissions
Users Cannot Register or Cannot Reserve a Device
If a student or researcher cannot register an account or cannot see/reserve a specific SDR, inspect the server state from the server@remoterf: prompt:
devices list
groups list
codes list
reservations list- Enrollment code rejected: Run
codes listto check whether the code has already reached its maximum uses or expired. Generate additional codes withcodes create. - Device missing for a user: Run
groups listand check that the user’s group includes the targetdevice_idin itsdevices_whitelist. Update the whitelist in place withgroups edit. - Device busy: Run
reservations listto check whether another user holds an active reservation on that device.