Without the hosted gateway: direct pairing & self-hosted guide

Two ways to run dsh-zen-remote with zero dependency on the hosted gateway: direct Host/Client pairing (no relay server needed) or a self-hosted open-source gateway-server for multi-machine Peer mesh. Both include mobile PWA access and cross-desktop per-session scoping.

Two ways to run without the hosted gateway

The hosted gateway only handles zero-public-IP relaying and OAuth onboarding. If you want all signaling, credentials, and traffic to stay strictly off external infrastructure—or simply want direct LAN/Tailscale connections—choose one of the two paths below:

Both paths use the unified dsh-zen-remote plugin: install via DSH Plugins → + Add plugin (dsh-zen-remote) on desktop, or run dsh plugin --profile web add dsh-zen-remote on headless servers.

PathBest forServer neededHow devices link
Host / ClientSame Wi-Fi/LAN, Tailscale tailnet, or a host with its own domain/reverse proxyNo (zero relay gateway—phones and clients connect directly or via your proxy)One-time 8-character pairing code (Client defaults to 8 hosts, configurable 1–64 via maxServers)
Peer + Self-hostedMultiple machines across separate NATs/clouds without per-machine public IPsOnly 1 server running Docker gateway-server (individual workstations still need no public IP)zr-net:// invite link generated in your own gateway console

Option 1: Host / Client direct pairing (zero relay gateway)

This mode runs with zero external relay servers. Your primary workstation acts as a Host running its local gateway (default port 3088, auto-incrementing if occupied; always use the address shown in the wizard), and your phone PWA or another DSH desktop (Client) connects over LAN, Tailscale, or your own HTTPS reverse proxy.

  1. Configure your primary machine as Host

    Open DSH Plugins → dsh-zen-remote → Setup wizard. In Step 1 choose Server (Host) and LAN / Tailscale Direct (or configure your own reverse proxy, built-in Caddy, or Cloudflare Tunnel in Step 2 for public HTTPS access).

    Once started, the host runs its local gateway and pairing endpoint; see Host server guide for ingress and security checks.

  2. Pair your phone browser directly via QR or code

    In Step 3 of the Host wizard, generate a pairing code. Open your host URL on your phone browser (a LAN/Tailscale address on the same network, or your HTTPS domain via QR scan).

    Enter the 8-character pairing code on your phone to receive a device-bound cookie and open your live sessions immediately.

  3. Pair a second desktop as Client

    Install dsh-zen-remote on your laptop, pick Client in wizard Step 1, and enter the Host URL plus a one-time pairing code (defaults to 8 paired hosts side by side, configurable 1–64 via maxServers).

    Shared sessions from every paired host appear grouped in your sidebar; see Desktop client guide for details.

Option 2: Peer multi-machine mesh + self-hosted gateway

When you want machines across different networks to share sessions bidirectionally while keeping control plane and relay infrastructure under your own roof, deploy the open-source gateway-server once and connect every computer in Peer mode.

  1. Deploy open-source gateway-server via Docker

    On one always-on public VPS with a domain and TLS certificate, launch kyomio/zen-remote-gateway with a single Docker command. Full container flags, firewall ports, reverse-proxy snippets, backup, and upgrade steps live in Self-host your gateway: one Docker command (gateway-server).

  2. Create a network and copy the zr-net:// invite link

    Open the Web Console on your own gateway domain, create a virtual network, and copy its zr-net:// invite link (encoding gateway host, network ID, and join key; protocol details in zr-net invite & pairing spec).

  3. Join desktops and headless servers via zr-net://

    On each desktop, open the dsh-zen-remote wizard, choose Peer Node in Step 1, click “Switch to self-hosted zr-net”, and paste your zr-net:// invite link. On headless Linux servers, run the CLI command below (more details in Peer guide).

    Join a headless server to your self-hosted gateway via zr-net://
    npx dsh-zen-remote setup --role peer --invite "zr-net://your-gateway.example.com/networkId#joinKey"
  4. Keep mobile PWA access active on Peer machines

    Joining a self-hosted Peer mesh preserves local Host phone access on every desktop. You can still pair your phone directly over LAN, Tailscale, or your own HTTPS origin using Option 1.

Using the mobile PWA & visibility boundaries in both setups

Neither Host/Client direct pairing nor a self-hosted Peer gateway requires an App Store app—the mobile UI runs straight in your phone browser as an installable PWA.

  • Add to Home Screen (PWA): tap Share → Add to Home Screen in iOS Safari, or Install app in Android Chrome for full-screen ergonomics, safe-area padding, and persistent sessions.
  • Phone vs desktop visibility: a phone browser or PWA paired to a Host can view and manage all local sessions on that Host (you can revoke any paired phone in Host settings); the per-session “Remote Access” switch inside the session info drawer controls which Host sessions desktop Client and Peer nodes can mount.
  • Trusted HTTPS for lock-screen Web Push: browser push notifications require a secure HTTPS context. Plain LAN HTTP works interactively when open, while lock-screen Web Push requires HTTPS (via Tailscale Serve, built-in Caddy, or your own reverse proxy).
  • For encryption guarantees or connection issues, refer to Security model and Troubleshooting.