Skip to content
Source
Sign inSign up
pingdotgg/t3code

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

ClosedMicsi(GitHub profile, opens in a new tab) opened this issue 1 comment

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

  • #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.
  • #17246 and #25991 remove tunnel addresses in 198.18.0.0/15 from the reported routes. A NetBird address in 100.64.0.0/10 is reachable by the other peers, so it should stay reported.

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.

  1. tanstack-source added labelsbug

  2. Fixed by #41655, now on main: With Network access enabled on a NetBird-only desktop host, Settings → Sharing & access now offers its 100.64.0.0/10 address as a VPN IP endpoint for pairing links and QR codes.

  3. juliusmarminge closed this

Sign in to join this conversation.