Skip to content

Manual network address entry rejects any hostname that isn't *.ts.net #7222

Closed

Description

@Daily-AC

Summary

Settings → Mobile → Network Interface lets you type a custom address for the mobile pairing QR code when the OS hasn't surfaced the right network interface. The input is validated by parseManualNetworkAddress (src/shared/network/manual-address.ts), which only accepts:

  • an IPv4 address, or
  • a Tailscale MagicDNS hostname (must end in .ts.net)

Any other hostname — including a plain LAN hostname, a DDNS domain, or a host:port — is rejected with "Enter an IPv4 address or Tailscale MagicDNS hostname", even though the main process already knows how to use it.

Use case

I self-host the relay side of my setup at home behind a residential connection with a dynamic public IP. I use a DDNS domain (e.g. mydomain.example) so the address stays reachable across IP changes, and I need to pair my phone against mydomain.example:<port>. There's no Tailscale/ZeroTier overlay involved — just a plain domain and a port.

Today the only way to pair is to open DevTools and call the pairing IPC directly, bypassing the Settings UI entirely.

Why this looks like a UI-only gap

mobile:getPairingQR and the pairing endpoint resolution in src/main/runtime/runtime-rpc.ts don't share this restriction:

  • resolvePairingEndpoint accepts any address override, not just IPv4/MagicDNS.
  • parsePairingAddressOverride already parses host, host:port, and full ws:///wss:// URLs.

So the main process can already build a working pairing endpoint for a domain like mydomain.example:8443 — the regex in parseManualNetworkAddress is the only thing standing between that and the Settings UI.

Suggested fix

Broaden parseManualNetworkAddress to accept any RFC 1123 hostname (a superset that still covers *.ts.net) with an optional :port suffix, matching what parsePairingAddressOverride already understands. IPv4 validation and the existing length/whitespace checks stay as-is.

I have a patch ready (regex + updated unit tests in manual-address.test.ts, plus a small copy update in NetworkInterfacePicker.tsx's custom-address dialog) and will open a PR against this issue.

Activity

  1. added theissue type on Jul 12, 2026
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions