RDX / docs

    Loading index

    getrdx.ioPricingSign in

    Commands

    rdx devices

    List, name and forget the LAN pairings saved on this computer, and choose whether joined hosts learn its name.

    rdx devices shows the LAN pairings saved on this computer. rdx pairings is the same command.

    Synopsis#

    text
    rdx devices [--json]
    rdx devices forget <id>
    rdx devices name <id> <name>
    rdx devices name <id> --clear
    rdx devices share-name [on|off]

    Every form also works as rdx pairings ....

    List pairings#

    bash
    rdx devices
    text
    Hosts this computer joins
    NAME        ID            STATUS  LAST ADDRESS
    studio-mac  a1b2c3d4e5f6  paired  192.0.2.20
    
    Computers that can control this computer
    NAME            ID            STATUS  LAST ADDRESS
    ~travel-laptop  18d8d129deb1  paired  192.0.2.31
    
    Run rdx join <id> to join a host listed above.
    Run rdx devices forget <id> to stop a device from connecting.
    ~ not typed here: the name that computer reported, or one made when it paired.

    The pairings are in two groups: hosts this computer joins, and computers that can control this computer. A computer that does both is in both.

    ColumnMeaning
    NAMEThe name RDX shows for the pairing (see below). A pairing with no name reads (host at <address>), (unnamed host) or (unnamed viewer)
    IDThe saved pairing's identifier. Use a prefix of at least four hex characters elsewhere
    STATUSpaired, pending (never finished) or forgotten
    LAST ADDRESSThe last address seen on your network, or -

    With no pairings it prints No saved LAN pairings on this computer.

    Names#

    The name leads each row. In order of preference it is:

    1. A nickname you typed on this computer.
    2. For a computer that controls this one, the name it reported for itself, marked with ~.
    3. An automatic name made when the pairing was made, marked with ~.

    Reported names are whatever that computer chose to send, so the ID stays beside it and nothing is decided by it.

    JSON#

    rdx devices --json prints schema 1 JSON with the pairings. A named pairing has name and name_kind (typed or automatic); one with a reported name also has reported_name.

    Forget a pairing#

    bash
    rdx devices forget 18d8d129deb1

    Stops that device from connecting, removes its saved name, and tells a running host to revoke it. To pair again, forget the host on the joining computer as well and use a new code. If another process (such as an open viewer window) holds your saved computers, forgetting a host fails with an "in use" message until that window is closed.

    Name a pairing#

    bash
    rdx devices name 18d8 studio-mac
    rdx devices name 18d8 --clear

    Gives a pairing a nickname on this computer, shown instead of any other name. --clear removes the saved name. A nickname:

    • starts with something other than --;
    • has at most 40 characters, at least one visible, and no control or invisible characters;
    • is only a local label. It authorizes nothing and never leaves this computer.

    If the names file cannot be read, naming is refused and nothing is changed.

    Share name#

    bash
    rdx devices share-name        # show the setting and the name that would be sent
    rdx devices share-name off    # stop telling hosts what this computer is called
    rdx devices share-name on

    Each LAN join tells the host this computer's name (macOS: its local host name; Windows: its DNS host name) so the host can label the pairing. The default is on. With it off, joins withhold the name, and an updated host forgets the one it kept. A host keeps a name it was already told until then.

    The setting is saved per installed channel and applies to every later LAN join. It is not available on Linux. Reading the name waits at most two seconds; if it cannot be read in time the command says so.

    State directory#

    Saved pairing names live in pairing-names.json in RDX's state directory. Set RDX_STATE_DIR to redirect state files. When it is set, rdx devices reads and forgets pairings in its LAN subfolder instead of the installed store, rdx list skips saved LAN hosts with a warning, and share-name is refused. See Environment variables.

    Exit behavior#

    0 on success. 1 on failure, for example an unmatched or ambiguous ID or an unreadable names file. 2 for invalid arguments.

    See also#

    Pairing, rdx tui (Pairings tab), Pair on your network.