RDX / docs

    Loading index

    getrdx.ioPricingSign in

    Commands

    rdx host guest

    Make a guest link that shares this screen with someone who opens it in a browser.

    rdx host guest makes one guest link and shares this computer's screen with whoever opens it, one guest at a time, until the link ends. For what a guest link is, see Guest links.

    Synopsis#

    text
    rdx host guest [--seconds <n>] [--input] [--audio] [--splice <url>] [--page <url>] [--plan <file>] [--billing <url>]

    In the terminal interface the same command is /host guest with the same flags. /host guest off, or x in the link's card, turns the link off.

    Options#

    OptionWhat it does
    --seconds <n>How long the link lasts, from 1 to 86,400. An hour if you leave it out. It also ends when the plan does, whichever comes first.
    --inputLet the guest use your pointer and keyboard. Without it the guest only watches.
    --audioLet the guest hear this computer's sound.
    --splice <url>Another relay to carry the session, in place of RDX's own. It must start with wss://, or ws:// on a loopback IP address such as 127.0.0.1 or [::1] (not a name). It may not carry a query or a fragment.
    --page <url>Another page for your guest to open, in place of RDX's own. It must start with https://, or http:// on a loopback IP address. It may not carry a query or a fragment.
    --plan <file>A plan file, or a plan bundle, in place of the one RDX gets from your signed-in account. The build checks it against the key compiled into it.
    --billing <url>Report the link to billing by its ticket and show it only once billing registered it. A link revoked in your account is then turned off here too.

    Without these flags RDX uses its own relay and page, and gets a plan for this link from the RDX account you signed in with rdx auth login.

    What it prints#

    The link is printed once, right after the host says it waits at the relay. After that the command prints one line for each thing that happens: dialling, waiting, a relay it cannot reach and when it dials again, a refused or busy dial, a guest admitted (and whether the guest may use the pointer and the keyboard), the end of a session, and last the link's close.

    Ctrl+C, SIGTERM or a closed terminal turns the link off. A second Ctrl+C ends the process at once. The command exits with 0 when the link ended by its deadline or was turned off, and with an error when nothing was made, the screen can no longer be captured, or the host stopped before the link ended.

    The link is not saved or logged. Treat it as a secret: anyone who has it can ask to join until it ends.

    The plan file#

    Most people never need one: RDX gets a plan from your account for each link. --plan names a plan file or a plan bundle instead. A bundle is the plan together with the private half of its usage key, in a file only its owner can read. Keep plan files private (mode 0600): anything that can read one can ask for a guest link with it. If other accounts on the computer can read it, the command warns you on standard error.

    With billing#

    With --billing, the host reports the link to billing by its ticket and prints it only after billing answers that it registered it. A link billing will not register is turned off without being shown, and the command fails. A bare plan, one that is not a bundle, is refused with --billing. The host asks billing about its links every 30 seconds, so revoking a link in your account turns it off here within about a minute. Without --billing nothing is reported anywhere.

    Who wins#

    A guest is refused while one of your own sessions is open on the host, and a session of yours that begins while a guest is in ends the guest's session first, with a line saying so. The link stays live. On Linux the guest-link host runs in the command's own process, which does not apply this rule yet.

    Platforms#

    • macOS: the command asks the running RDX Host over its control socket, and the host shares the screen with its own Screen Recording and Accessibility permission. Only the RDX command-line tool signed by the same publisher as the host may ask. A tool built from source with Cargo cannot. With no host running the command answers "No RDX Host is running on this computer. Start it with rdx host, then try again."
    • Linux (X11): the command shares the screen from its own process.
    • Windows: the command asks the running RDX Host in your sign-in session over its control pipe, and the host shares the main display. Any program running as you in that session can ask; Windows builds are not signed yet, so the host cannot check which program asked. Plan files there take their folder's permissions, so keep them in a folder only you can read.