RDX / docs

    Loading index

    getrdx.ioPricingSign in

    Commands

    rdx host allow-firewall

    Add or repair RDX's Windows Defender Firewall rules for the host program.

    rdx host allow-firewall makes sure Windows Defender Firewall lets other devices reach the RDX host. Windows only.

    Synopsis#

    powershell
    rdx host allow-firewall

    It takes no options.

    What it does#

    1. Reads the firewall policy for the exact host program (read-only, no elevation needed).
    2. Adds RDX's inbound allow rules for that program where a network lacks them, for TCP and UDP on any port.
    3. Turns RDX's own rules back on if they were switched off.
    4. Removes the pending block rules Windows added for this program from its own "Windows Defender Firewall has blocked some features" prompt, on the Private profile only.
    5. Reads the policy back and tells you whether the host is now admitted.

    Rules cover Private networks, plus the Tailscale adapter when it is not Private. RDX never adds rules for public networks. Windows may show an administrator approval prompt unless your terminal is already elevated.

    If everything is already allowed it says so and changes nothing. If something RDX will not change is in the way (a block rule someone else added, a profile that blocks all incoming connections), it names what is blocking and leaves it alone.

    Automatic rules#

    You rarely need this command: starting a host (rdx host, --detach, --daemon) does the same check first, and prints one line before asking Windows for approval. Run allow-firewall explicitly to repair rules, or to cover a rule that was turned off.

    A decline does not stop hosting; devices on networks that were already allowed can still connect. The next start asks again. Sign-in startup never asks, because nobody is there to approve.

    A new RDX build can pin a new host program path, so after an update you may need to run this again.

    Exit behavior#

    0 on completion, including "already admits this host". 1 on failure, for example when the host component is missing or the policy cannot be read. A build that cannot host says it needs a build that can host.

    See also#

    Permissions, rdx host.