RemoHop

中文

Docs

Troubleshooting

This page covers the errors remohop prints when connecting to a host, how to read remohop <ID> ping and remohop status, NAT traversal and the relay, and the features with platform requirements: services, mounts, VPN, serial and USB, the screen and GUI input, the browser gateway and ffmpeg. Messages are quoted as the program prints them; <ID> stands for the 9-digit ID and dev for an alias.

Exit status: remohop exits with 255 when it cannot connect or the connection fails. For shell -c, it exits with the remote command's status, 124 when --timeout expires, and 130 when interrupted locally.

Debugging first

Run the failing command with -v, or set REMOHOP_DEBUG=1, to get debug logs on stderr:

remohop -v 276941009 info

On the host, three commands show what it is doing:

remohop status
remohop log 20
remohop service status

remohop doctor puts the network situation on one page, on either side: the rendezvous server (does it answer over UDP, which NAT type), the addresses this machine offers to peers, a running Tailscale and what it changes, the mesh network (remohop net status, net.md) and VPN tunnels, followed by advice. --offline skips contacting the server.

On the client, remohop devices shows each saved host, whether the rendezvous server sees it online (hosts saved by address show not checked), and the background commands running to it. remohop ps lists every background command on this machine.

Reading remohop <ID> ping

PING 127.0.0.1:47301 over direct path 0.0.0.0:41009 -> 127.0.0.1:47301 (peer-to-peer, no relay)
reply from 127.0.0.1:47301: seq=0 time=0.14 ms
1 probes, rtt min/avg/max = 0.14/0.14/0.14 ms
the host calls itself "labhost"
the host sees this machine as 127.0.0.1:41009

The first line names the path:

PathMeaning
landirect to the host's private address on the same network
directdirect to the host's own public address, or to a HOST:PORT you gave
punchedthrough NAT mappings opened by UDP hole punching
relayedno direct path exists and the rendezvous server passes the packets

The first three are peer to peer. A relayed session is as encrypted and authenticated as any other, but slower and subject to the relay's bandwidth cap. It is announced on stderr when it is set up (REMOHOP_QUIET=1 silences the notice). the host calls itself shows the name set with remohop config set name on the host, if any.

Connection errors

Target and rendezvous

no rendezvous server configured: pass --signal HOST[:PORT], set REMOHOP_SIGNAL, or run remohop config set signal HOST[:PORT](you can run your own withremohop signal)

You used an ID, but this machine has no rendezvous server, and there is no built-in default. Set one with remohop config set signal sig.example.net, or connect by address, for example remohop 192.168.1.5:21118 info, with the host started as remohop host --no-signal --listen :21118.

no host with ID 276 941 009 is known to the rendezvous server ... (check the ID)

Check the digits (IDs are printed with spaces; both forms work) and check that both machines use the same server. A host installed as a service has a different ID from a remohop host started by hand on the same machine, and remohop key gen on a host gives it a new ID.

host 276 941 009 is offline: it is not connected to the rendezvous server ...

The ID exists, but the host is not registered right now. On the host, run remohop status; while it cannot register it shows the reason in the ID line, and the daemon keeps retrying.

host ... is registered with the rendezvous server but did not answer; try again

Usually transient. Try again, and check remohop status on the host if it persists.

rendezvous server ... unreachable: ... or rendezvous server key ... does not match the pinned key

Check that the server's two UDP ports are open to the internet. If the key differs, confirm that the server was replaced, then update the pin with remohop config set signal-pin KEY or remove it with remohop config unset signal-pin.

unknown target "x": expected a 9-digit ID, a saved alias (see remohop peers) or HOST:PORT

List saved names with remohop peers or remohop devices.

no remohop host answered at <address>

Nothing answered at a HOST:PORT target. Check the address, the port given to --listen, and firewalls for UDP.

Credentials and approval

no credential for this host (...): no password given and no saved pairing; ...

Run remohop <ID> pair once in a terminal and type the password. Scripts and agents cannot answer a prompt, so they need a pairing or an authorised key first.

login to <ID> failed: wrong password (or the connection is being intercepted)

Check the current password on the host with remohop status --show-password or remohop otp. A temporary password changes every time the host restarts, and after every login when remohop config otp on is set. A fixed password is never displayed; set a new one with remohop passwd if it is forgotten.

login to <ID> refused: locked out after too many failed attempts; retry in 10s

The lockout starts at 10 seconds after the third consecutive failure from your address and doubles on each further failure, up to 10 minutes. The count clears after 30 minutes without attempts. remohop log on the host shows who else has been trying.

remohop: waiting for approval on the host… then login to <ID> refused: the connection was not approved at the host (denied, or nobody answered in time)

The host has remohop config ask on. Someone has to answer at the host, in the terminal where remohop host runs or from any terminal of the same user:

remohop host approve
remohop host approve 1

The first lists waiting connections (with the client's identity and name), the second approves one; remohop host deny N refuses. A host running as a service has no terminal, so use remohop host approve there.

login to <ID> failed: the saved pairing was not accepted ... or ... the host no longer accepts the saved pairing; ...

The pairing was revoked or replaced, the host's state was reset, or this machine's identity changed (remohop key gen, key import or key clear). Pair again with remohop --password PW 276941009 pair --name dev.

login to <ID> failed: the host has not authorised this machine's key; ...

This machine logs in with its key (remohop peers trust was used), but the host has no authorisation for it, or it was revoked. Run remohop key export here and remohop authorize "LINE" on the host again.

the host is busy with other logins; try again in a moment

Too many logins are in progress on the host. Try again.

host identity has changed: ... If the host was reinstalled, run remohop peers forget <target> and connect again

The host presented a different identity key than the one pinned earlier: it was reinstalled, its identity was replaced with remohop key gen or key import, you now reach a different instance (for example an installed service where a hand-started host used to answer), or someone is impersonating it. If you know the change is legitimate, run remohop peers forget <target> and connect again. See security.md.

Features switched off

remote refused "exec": the host does not allow exec (feature "shell" is switched off; its owner can allow it with remohop config feature shell on)

The host's owner switched that feature off. remohop status on the host lists what is not allowed. Only the owner can change it, on the host, for example remohop config feature serial on. The features are shell, file, forward, clip, screen, input, info, vpn, serial and usb. Agents should report this message and not retry.

No direct path

could not connect to <ID>: <explanation>: no direct path to the peer

Both machines found each other through the rendezvous server, but no UDP packet got through in either direction. When both NATs look punchable the client has already retried once on a fresh socket. The explanation names the NAT types detected on each side:

What to do, in order of reliability:

  1. Forward a UDP port on the host's router and connect by address, which skips the rendezvous server and punching. On the host run remohop host --listen :21118; from the client, remohop 203.0.113.7:21118 info.
  2. Use IPv6, or put one side on a different network such as a phone hotspot.
  3. Use a relay. This needs the operator of the rendezvous server to run remohop signal --relay; nothing changes on the clients.

These messages concern the relay:

A relayed connection prints no direct path to <ID>: connected through the rendezvous server's relay (still end-to-end encrypted, but slower). It does not later switch to a direct path; reconnect after the network changes. The relay's per-session cap is 8000 kbit/s by default (remohop signal --relay-kbps). Every new command dials again. The first one to a host that cannot be punched spends up to about 12 seconds trying, and only then uses the relay. After that, remohop remembers for 10 minutes that this host needed the relay from the same pair of public addresses (relay-hints.json in the config directory), so the next commands go to the relay at once. A change of network on either side brings punching back.

Only HTTPS gets out (websocket bridge)

Where UDP is blocked, rendezvous server ... unreachable is the usual symptom. If the server operator runs the websocket bridge (remohop signal --ws-listen), set remohop config set signal-ws wss://HOST/remohop/v1/udp. remohop then falls back to it after 4 seconds without a UDP answer, and REMOHOP_TRANSPORT=ws skips the wait. remohop -v <ID> ping logs the fallback, and the ping line reads relayed path (websocket).

Host side

host: already running (pid N); see remohop host status``: a host daemon is already running for this config directory.

host: <error> with (or use --no-signal to serve direct connections only): the host could not use its rendezvous server. Fix the address, or start with --no-signal.

password too short: need at least 8 characters (not counting spaces and dashes): a fixed password must have at least 8 characters.

host: the host has no temporary password (password mode: fixed): remohop otp only applies to a temporary password.

Running your own rendezvous server

For the setup, see Self-hosting (中文). Common problems:

Accounts

Accounts are optional and need a rendezvous server started with --accounts (see remohop help signal). Background: security.md.

Running as a service

remohop service install writes a systemd unit, a launchd job or a Windows service. Common surprises:

remohop passwd changes the fixed password of a running host, including a service instance, without a restart.

Background commands

Port forwards, mounts, serial ports, clipboard syncs and VPN tunnels started with -b keep running after the command returns:

remohop ps
remohop forward
remohop unforward 18080
remohop stop --all

remohop forward lists running forwards and remohop unforward PORT stops one; a process holding other forwards keeps them. remohop serial, remohop vpn and remohop usb list their own kind. Remote background jobs (remohop <ID> spawn) run on the host: use remohop <ID> jobs, and remohop <ID> jobs rm --exited to remove finished ones with their logs.

Interactive shell sessions stay on the host for term-keep (30 minutes by default; remohop config set term-keep 2h on the host, read when the host starts, and REMOHOP_SHELL_KEEPALIVE overrides it). List and end them with remohop <ID> shell ls and remohop <ID> shell kill NAME. They do not survive a restart of the host.

Files

Mounts

The mount method depends on this machine's OS: FUSE on Linux, the system's WebDAV client on macOS and Windows. --webdav and --fuse override the default. A mount runs in the background; remohop ps shows it and remohop umount <dir | drive> stops it. If the session drops, operations fail while remohop reconnects (2 minutes by default; -o reconnect=DUR changes it), then it unmounts.

FUSE mount

If remohop umount <dir> reports process N did not exit, try remohop stop <PID>, then kill <PID>, then check /proc/mounts and remove a leftover mount with fusermount3 -u <dir> (or umount <dir> as root).

WebDAV mount

VPN

remohop <ID> vpn up is tested with Linux on both ends. A Windows client (Wintun) and a macOS client (utun) are implemented. The macOS client is verified by automated tests on a hosted macOS VM (utun interface, routes including --route, packets both ways, clean-up, clean-up after a killed process, and remohop host plus vpn up on one Mac); --exit on macOS has not been run on a real network and nothing has been run on a physical Mac. The Windows end-to-end test is opt-in and not verified. Windows and macOS hosts cannot forward for --route or --exit:

Serial ports and USB

Serial.

USB. USB/IP needs Linux and root on both sides; it has been run against the real kernel only in CI, with a virtual device:

Screen, GUI input and desktop

screenshot, desktop, click, move, type, press and scroll need a display on the host. The host reports the reason from its side, for example:

remohop: click: no display available on the host: DISPLAY is not set; X display :0: dial unix /tmp/.X11-unix/X0: connect: connection refused; ...; input needs a running X11 session

Recording

Audio

remohop <ID> desktop --audio (or the page's Audio button) forwards the host's audio output. It is off unless asked for. When it cannot work, the error comes from the host and says what to do:

Monitors

Files

Dropping a file on the viewer page (or the Upload button) copies it to the host user's Downloads folder, or to --upload-dir.

Measuring

remohop <ID> desktop --bench prints frame rate, bitrate and capture-to-received latency without a browser; add --audio to include audio and --json for scripts. Latency is host capture clock to arrival, so it excludes the browser's decode and draw (the Stats overlay's latency includes them) and, with x11grab, up to one frame period before the grab. n/a means the host's capture device has no wall-clock timestamps (macOS and Windows capture devices may not). A run with nonzero encoder restarts or many drops is the host or the link being overloaded.

ffmpeg and encoders

desktop needs ffmpeg on the host, with an H.264 or AV1 encoder. remohop <ID> desktop --no-open --json lists the encoders the host found (for example "av1": "libsvtav1", "h264": "libx264"); the codec is chosen when the page connects and tells the host what the browser can decode.

The viewer decodes with WebCodecs and needs a browser that supports it.

Browser gateway

Through Cloudflare Tunnel

Mobile apps

Platform notes

Linux is the reference platform. macOS and Windows are tested by automated runs on hosted runners, not on physical desktops.

Windows hosts

macOS

Still stuck

Collect the output of remohop -v <command> on the client and remohop status, remohop log and remohop config on the host (remove secrets), and note the operating systems and network setup on both sides. For security questions, see security.md.