Skip to content

[Feature]: Add Cloudflare Tunnel as a pairing target for the browser access link #14039

Description

@Pierre-Mike

Problem or use case

Orca can already serve its full web client to a browser: Settings → Remote Orca Servers → Share this host mints an access link, and the runtime serves the bundle itself at /web-index.html. But the addresses that link can advertise all assume the browser can already reach the machine — a LAN IP, a Tailscale address, or a tunnel the user wired up by hand.

There is no supported path for "open Orca in a browser from outside my network" without either a VPN or hand-rolled infrastructure.

A Cloudflare Tunnel is the obvious fit — one command, no inbound firewall change, TLS terminated at the edge — but the Custom address field cannot actually accept one today:

  1. parseServerShareAddress rejects http(s):// outright, so pasting the URL cloudflared prints fails validation with no hint that wss:// is required instead.
  2. Typing the bare hostname is worse, because it silently produces a broken link. A scheme-less address takes the parseHostOverride path in resolveAdvertisedPairingEndpoint and inherits the bound local port, so foo.trycloudflare.com gets advertised as ws://foo.trycloudflare.com:6768 — against a tunnel edge that only answers on 443. The link looks fine and never connects.

So the capability is not merely undiscoverable, it is unreachable through the existing field unless the user happens to know to type wss://host by hand.

Proposed solution

Add Cloudflare Tunnel as a first-class choice in "Where will this link be opened?", alongside Another device / This computer only / Custom address:

  • Show the exact command to run, using the runtime's real bound port: cloudflared tunnel --url http://127.0.0.1:<port>, with a copy button.
  • Accept the https://….trycloudflare.com URL cloudflared actually prints, normalizing it to wss:// internally so the port-inheritance trap above cannot happen.
  • Reject loopback, tailnet, and LAN hostnames in that field, since a tunnel fronting those produces a link the outside world cannot open.
  • Warn when the hostname is a quick tunnel, because those are regenerated on every cloudflared restart and silently invalidate a previously generated link.
  • Reuse the existing device pairing, E2EE, and revocable access grants unchanged.

This also makes the browser client usable remotely for the first time: the tunnel terminates TLS, so the page is https:// and the socket is wss://, which avoids the mixed-content rejection in isMixedContentWebSocket that blocks the plain-LAN http:// + ws:// pairing.

Alternatives or additional context

  • Relaxing parseServerShareAddress to accept https:// would fix (1) but not (2), and would leave the user to work out that a tunnel needs a scheme at all.
  • [Feature]: Add a first-class custom tunnel/VPN option for Orca Mobile #12535 asks for the same thing on the Orca Mobile pairing surface (Orca Relay / LAN). This issue is the desktop Share this host surface, which that one does not cover. Worth deciding whether they should be tracked together.
  • No native Cloudflare integration or automatic provisioning is needed. The user runs cloudflared themselves; Orca only needs to accept the URL it prints and advertise it correctly.

Activity

  1. added
    enhancement
    on Sep 19, 2026
  2. added theissue type on Sep 19, 2026
  3. chunchet-ng commented on Oct 25, 2026

    @chunchet-ng
    Contributor

    For coordination with this request, #31499 is a narrower sharing-address fix: the existing Custom address flow accepts the HTTPS URL returned by a tunnel and normalizes it to WSS, preserving explicit public ports rather than inheriting the local listener port.

    The related authentication work is #31880 (native mobile), #31885 (desktop/CLI) and #31886 (initial native pairing). This set does not add the dedicated Cloudflare intent or command UI proposed here, and it does not establish browser Access-session support. Those scope boundaries remain explicit in the PRs.

    These are open review proposals, not released support. Upstream PR CI still needs maintainer approval; real-device and browser Access-session acceptance remain outstanding. Tunnel creation remains manual.

  4. szj2ys commented on Oct 29, 2026

    @szj2ys

    +1, with another use case for this.

    Setup: Orca 1.4.243 on Windows 11, Share this computer -> Another device -> Local network.

    Problem: the generated link only works for devices on the same subnet. From a phone on mobile data, or any network outside the LAN, it never connects. The machine sits behind NAT with no public IP and no inbound ports, so the LAN address is the only option the dialog offers.

    What would help: a supported way to make the share link reachable from the public internet without a VPN on every client device: ideally the Cloudflare Tunnel target proposed here (PR #14040), or a hosted relay that reuses the existing pairing, E2EE and revocable grants (related: #10038, #12535).

    Would be great to see #14040 reviewed and merged. Happy to test a build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions