Skip to content

[Bug]: Desktop no longer offers a pairing link for a NetBird (non-Tailscale VPN) address since #15753 #41053

Open

Description

@Micsi

Area

apps/desktop

Steps to reproduce

  1. macOS host with the T3 Code desktop app (0.1.11), Network access on. NetBird is the only VPN (utun100, an address in 100.64.0.0/10). Tailscale is not installed.
  2. Open Settings → Sharing & access and create a pairing link.
  3. Look at the addresses offered for the link.

Expected behavior

The host's NetBird address is offered for pairing, labelled VPN. The clients already have this route kind and label (#17158).

Actual behavior

The list offers loopback, one LAN address, and Tailscale. There is no link or QR code for the NetBird address, and no error or hint. A device that is away from the LAN cannot be paired from the desktop UI.

This is a regression. Before #15753 the NetBird address was listed under Tailscale, and pairing an iPad and an iPhone over NetBird worked. NetBird is a WireGuard mesh VPN like Tailscale and uses the same 100.64.0.0/10 range. The server still accepts connections from that range, and the devices paired earlier kept working over NetBird until their sessions expired. Only the way to create a new pairing over that address is gone.

Diagnosis

  • fix(desktop): exclude unrelated VPN addresses from Tailscale pairing #15753 (apps/desktop/src/backend/tailscaleEndpointProvider.ts) correctly stopped labelling other VPNs as Tailscale: an address in 100.64.0.0/10 is listed only when the interface is a Tailscale interface or tailscale status names the address.
  • Nothing lists the excluded addresses instead. resolveLanAdvertisedHost in apps/desktop/src/backend/DesktopServerExposure.ts picks one LAN address and prefers interfaces that are not utun, so the NetBird address is never chosen while a LAN address exists.
  • The server does report the address: resolveBoundEndpoints in apps/server/src/environment/DirectEndpoints.ts returns it with kind lan, so a device paired over the LAN can learn it as a VPN route.

Environment

  • Host: macOS (arm64), T3 Code desktop 0.1.11, NetBird 0.82.0 (userspace WireGuard), no Tailscale.
  • Clients: iPadOS and iOS app 2.3.0 with NetBird.

Related

Workaround

On the device, add the machine or a route by hand: type http://<netbird-ip>:3773 and a pairing code from the host's Sharing & access.

Filed with an AI agent (Claude Fable 5.2 in T3 Code) after reading the host's server log and the code on main at 3806763022.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions