Commands
rdx host
Host this computer so another can join it, in the foreground, in the background, or at every sign-in.
rdx host shares this computer's desktop so a viewer can join it.
Synopsis#
rdx host [up] [--detach] [--daemon] [--lan | --no-lan] [--audio | --no-audio]
[--media-inside-tailscale | --no-media-inside-tailscale] [--qr]
rdx host --daemon [--elevated | --no-elevated] (Windows) see Administrator rights below
rdx host --install (same as --daemon)
rdx host lan [on | off] see LAN hosting below
rdx host audio [on | off] see Host audio below
rdx host media [inside-tailscale on | off] see Media inside Tailscale below
rdx host access see the host access page
rdx host status [target] see the host status page
rdx host down [--uninstall] see the host down page
rdx host allow-firewall see the allow-firewall pageup is optional: rdx host and rdx host up are the same.
Start modes#
| Command | Hosts | Ends when |
|---|---|---|
rdx host | In this terminal | You press Ctrl+C or the terminal closes |
rdx host --detach | In the background | You sign out, restart, or run rdx host down. Nothing starts at the next sign-in. |
rdx host --daemon | Now, and at every sign-in | You run rdx host --daemon-remove |
--detach and --daemon also work after up. --detach --daemon means --daemon.
Foreground#
rdx hostHosting this Mac. Press Ctrl+C to stop.
Over Tailscale: rdx join studio-mac
This network: rdx join 192.0.2.20
Only devices granted RDX access in the Tailscale admin console can join over Tailscale. Run rdx host access.
Pairing code: K7QM-2XPD (first LAN join only; expires in 2 min)The unindented line says who the host lets in over Tailscale, once, under the join lines. Only a device that holds the RDX grant in your Tailscale admin console gets in. If the host that is running was started by an older RDX, the line says that instead, and says it admits every device on your Tailscale account until it restarts. If the running host cannot be checked, the line says that. See rdx host access.
The Tailscale line uses this computer's short MagicDNS name when Tailscale reports one, and its address otherwise. The terminal also prints when a viewer connects or disconnects, and tells you if a permission is missing.
On macOS, press Enter in the terminal to show a new pairing code. A second terminal cannot show codes for it; running rdx host there says so instead of starting another host.
Background (--detach)#
rdx host --detachReturns your terminal as soon as it has printed how to join and, when LAN hosting is on, a pairing code. Hosting continues after the terminal closes.
- macOS: a host already running in another terminal moves to the background instead of a second one starting. Run
rdx host uplater to see a new code. - Windows: a hidden owner process holds the host. It stops issuing pairing codes once the launching command returns, so to pair another LAN computer run
rdx host down, thenrdx hostagain. A host running in another terminal does not move:--detachrefuses and tells you to stop it first. If sign-in startup is installed,--detachstarts that installed host. - Linux: not supported.
At every sign-in (--daemon)#
rdx host --daemonStarts hosting now and registers it to start at every sign-in, so hosting comes back after a restart. --install is the older name for the same thing.
"Restart" means the next time you sign in, not boot: screen capture only works in a signed-in desktop session, so nothing hosts before someone signs in unless the computer signs in automatically.
On macOS, the first time, you may be asked to approve RDX under Login Items. A detached host keeps running until then; run rdx host --daemon again after approving. If macOS refuses to start the job, the command tells you to run rdx host --daemon-remove, then rdx host --daemon.
Remove sign-in startup with rdx host --daemon-remove. See Start hosting at sign-in.
Options#
| Option | Meaning |
|---|---|
--detach | Host in the background until sign-out or restart (macOS and Windows). |
--daemon, --install | Host now and at every sign-in. |
--lan | Host on your local network and over Tailscale. Saved for later starts. |
--no-lan | Host over Tailscale only. Saved for later starts until you pass --lan. |
--audio | Share this computer's sound with viewers. Saved for later starts. |
--no-audio | Host without sharing sound. Saved for later starts until you pass --audio. |
--media-inside-tailscale | Keep the media of sessions that joined over Tailscale on Tailscale addresses. Saved for later starts. |
--no-media-inside-tailscale | Let the media of those sessions also use this computer's LAN addresses. Saved for later starts. |
--elevated, --no-elevated | With --daemon on Windows only: run the sign-in host with administrator rights, or stop doing so. See Administrator rights. |
--qr | Also print the LAN pairing invitation as a QR code (macOS). No app reads it yet. |
--lan, --no-lan, --audio, --no-audio and the two media flags combine with every start, and each can be given once. --lan is the default. --qr needs a terminal at least about 47 columns by 28 rows.
Invalid combinations exit with status 2 and a message: down rejects --detach, --daemon and --qr; up rejects --daemon-remove; each flag may appear once.
LAN hosting#
On macOS and Windows, whether hosts on this computer listen on your local network is one saved setting, on until you turn it off.
rdx host lan
rdx host lan off
rdx host lan onrdx host lan on its own shows where the setting stands: what is saved, and what the running host does about it. on and off save the setting and start or stop nothing. A running host follows it about a second later, however it was started, with no restart:
- Off: the host stops listening on your network, takes back its announcement there and ends a session that joined over the LAN right away. Sessions over Tailscale go on, and saved pairings are kept.
- On: the host listens on your network again. In a terminal host, press Enter for a new pairing code.
The command tells you what the running host did. rdx host up --lan and --no-lan save the same setting before a start. On Linux rdx host lan answers that there is no such setting. A host with no Tailscale listens nowhere while LAN hosting is off, and keeps running until you turn it on or stop it.
Host audio#
On macOS and Windows, whether this computer shares its sound with viewers is one saved setting, on until you turn it off. See Audio.
rdx host audio
rdx host audio off
rdx host audio onrdx host audio on its own shows what is saved and what the running host does about it. on and off save the setting and start or stop nothing. A running host follows the change within about two seconds, however it was started. rdx host up --audio and --no-audio save the same setting before a start.
The setting can only take sound away. It lets nobody in and turns nobody away. A viewer that joined while sound was off gets none until it joins again. A host that does not follow the setting says so. Linux has no such setting.
Media inside Tailscale#
When a session joined over Tailscale, its video, sound and input can also travel over this computer's LAN addresses. This setting keeps them on Tailscale addresses.
rdx host media
rdx host media inside-tailscale on
rdx host media inside-tailscale offrdx host media on its own shows what is saved and what the running host does about it. The setting is off by default. It changes nobody's access: who may join over your network is rdx host lan, and neither setting implies the other. rdx host up --media-inside-tailscale and --no-media-inside-tailscale save the same setting before a start.
A host on macOS or Windows goes by it. A Linux host says it does not follow the setting.
Who may connect over Tailscale#
A Tailscale device joins only when it passes the identity checks and holds the RDX grant in your Tailscale admin console. The grant is the only way in over Tailscale, and nothing on this computer replaces it. See rdx host access.
Pairing codes#
When LAN hosting is on, the host shows a one-time code for the first connection from a new LAN computer.
- Eight characters in the form
XXXX-XXXX, from the letters and digits2-9andA-Zwithout look-alikes (no0,1,I,O). - Valid for 120 seconds or five tries, and for one successful pairing.
- Press Enter in a foreground macOS host for a fresh code. For a background host on macOS, run
rdx host upagain, or userdx tuiand presscon the Host tab. - Already-paired computers connect with no code.
- Codes are never written to logs.
See Pairing.
Platform notes#
macOS#
Hosting runs in your signed-in session. The first run opens a setup window for Screen Recording and Accessibility (called Device Control and Data Access on macOS 27) (Permissions). If a permission is missing the host prints the states and asks you to open setup; it says Desktop access is granted. once it recovers.
Windows#
Hosting needs a signed-in desktop session, not an SSH session. Windows hosts provide video, keyboard, mouse, clipboard and this PC's sound. Turn sound sharing off with rdx host audio off. Before listening, RDX adds missing Windows Defender Firewall rules and may show a Windows administrator prompt. See rdx host allow-firewall.
rdx host supports --lan and --no-lan on Windows and rdx host lan works there too. --qr prints the pairing invitation as a QR code, as on a Mac.
Administrator rights (Windows)#
Windows keeps a program from sending input to a window that runs with more rights than the program. A host without administrator rights therefore cannot type into, click or scroll a window that runs as administrator, such as an elevated terminal, Task Manager or an installer. Windows drops that input without an error.
rdx host --daemon --elevatedThis starts hosting now and at every sign-in with administrator rights, so viewers can also control those windows. It does three things:
- Windows asks for administrator approval (the UAC prompt) once, from a terminal that is not already elevated.
- RDX copies its host package to a folder under
Program Files\RDXthat only administrators can change, and checks every file of the copy. - RDX registers the sign-in task to run that copy with the highest rights. It never runs RDX from files your own account can change, because any program of your account could replace them.
Anyone who is allowed to join this PC then also controls windows that run as administrator. Who may join does not change. Windows' own approval prompts show on a secure desktop that no host captures or controls either way.
The start prints that consequence, and rdx host status says whether the running host has administrator rights.
Refusals. A standard account, whose approval would come from another account, is refused, and so is a session with no desktop to show the prompt on, such as SSH. A prompt you decline changes nothing. --elevated and --no-elevated go only with --daemon (or --install), once. Anywhere but Windows they are refused before anything is saved.
It stays. The choice belongs to the sign-in task, so a later rdx host --daemon keeps it. Each new build of RDX needs its own copy: run that build's rdx host --daemon --elevated, and expect the approval prompt again, since nothing updates the copy in place. A first install can show a second prompt for the firewall rules.
To undo it. Run rdx host --daemon --no-elevated to go back to hosting without administrator rights. It stops hosting, removes the task and the copy, and installs sign-in startup again at the lower level. rdx host --daemon-remove removes sign-in startup altogether, including the copy, and asks for approval as well. If the change cannot be confirmed, the command says so and tells you to run rdx host status.
Linux#
Foreground rdx host and rdx host --daemon need a verified host component and a GNOME X11 session for sign-in startup.
If a host is already running#
rdx host never starts a second host. If one is already running it prints how to join it instead and exits.
Exit behavior#
0 when hosting ended normally or the command completed. 1 on failure (for example an unavailable component or a host that cannot be stopped). 2 for invalid arguments. See Global options and exit codes.