Skip to content

[Bug]: iOS app loops on "Failed to connect" over T3 Connect when iOS Wi-Fi "Connectivity Assist" is on #14264

Closed

Description

@nfs0621

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

On an iPhone running iOS 27, leave Settings → Wi-Fi → Connectivity Assist on (the default).
Connect the phone to Wi-Fi. Mobile data is also available.
Open the T3 iOS app and open any environment linked through T3 Connect.

Expected behavior

The environment connects, or the app says Connectivity Assist is getting in the way.

Actual behavior

Every T3 Connect environment loops on:

Failed to connect. Reconnecting. Reason: Paul's Mac Mini did not respond during connection setup. Your DNS or firewall may be blocking T3 Connect. Try another network such as a phone hotspot.

This happened on two hosts at once (macOS and Pop!_OS). Turning off Connectivity Assist fixed both right away on the same Wi-Fi, with nothing changed on either host. The message points at DNS, the firewall or the host, and none of those was the cause.

What the host saw

From the macOS host's server.trace.ndjson while the phone was failing:

  • Every HTTP request from the app (T3Code/85) came through the relay and succeeded: POST /api/t3-connect/mint-credential, POST /oauth/token, POST /api/auth/websocket-ticket, GET /.well-known/t3/environment. All returned 200, and every span was Success.
  • GET /ws from the app never reached the host. The client fetched a new ticket and descriptor about every 15–20 s and gave up each time.
  • cf-connecting-ip on those requests was a cellular carrier address (Bell Mobility IPv6), even though the phone was on Wi-Fi. So Connectivity Assist was sending at least some of the app's traffic over cellular.
  • The relay itself was fine. A curl --http1.1 WebSocket upgrade to the same relay hostname reached the host over both IPv4 and IPv6 in about 0.16 s and got the expected 401 missing_credential.
  • The relay tunnel stayed registered, and /ws over a direct (Tailscale Serve) connection from another client worked at the same time.

My guess, not confirmed: with Connectivity Assist on, the WebSocket and the HTTP requests take different network paths (Wi-Fi and cellular), and the socket handshake stalls.

Suggestions

  • Open the WebSocket with the same network settings as the ticket request (for example allowsExpensiveNetworkAccess / multipathServiceType), or retry once on the other network.
  • When the ticket and descriptor succeed but the socket times out, change the error text. Mention Connectivity Assist, Wi-Fi Assist and VPN or filter profiles instead of DNS and firewalls.

Impact

Major degradation or frequent failure

Version or commit

t3 0.0.42

Environment

iPhone, iOS 27 (Darwin 27.0.0), home Wi-Fi plus Bell Mobility cellular, T3 Connect relay.

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

Turn off Settings → Wi-Fi → Connectivity Assist, or connect directly (for example with Tailscale Serve) instead of through the relay.

Activity

  1. added
    bug
    needs-triage
    on Sep 29, 2026
  2. juliusmarminge commented on Sep 29, 2026

    @juliusmarminge
    Member

    Triage

    This matches the current client, and it is still the behavior on main (not fixed after 0.0.42).

    The text you quoted is the relay setup timeout. If a T3 Connect attempt does not finish within 15 seconds, the supervisor reports {environment} did not respond during connection setup and always appends Your DNS or firewall may be blocking T3 Connect. Try another network, such as a phone hotspot. That hint is attached for every relay setup timeout. It does not mean the client saw a DNS or firewall error, and it does not mean the host was asked and failed to answer. Your host trace is the better reading: credential, token, ticket, and descriptor requests all returned 200, and GET /ws never arrived. The 15–20 second loop is the same timeout, then a new ticket.

    The split you guessed is real, and it is in the iOS stacks rather than in the relay. React Native fetch uses NSURLSession, which is what Connectivity Assist (Wi-Fi Assist on iOS 26 and earlier) steers onto cellular. That fits cf-connecting-ip being a Bell Mobility address while the phone was on Wi-Fi. The socket is not that session. The app uses the global WebSocket, and on iOS that is SocketRocket (NSInputStream / NSOutputStream). It does not take allowsExpensiveNetworkAccess or multipathServiceType. Those are URLSessionConfiguration properties, so they cannot be set on this socket. A same-path retry would mean a native WebSocket that shares the HTTP session’s interface policy. Turning Connectivity Assist off, or using a direct connection such as Tailscale Serve, avoids that split, which matches what you already found.

    The copy is the part that is wrong today. Once the ticket and descriptor have succeeded, blaming the host, DNS, or a firewall is not supported, and “try a phone hotspot” points at the cellular path that Assist just used. The message should say that the WebSocket did not open, and name Connectivity Assist / Wi-Fi Assist, a VPN, or a content filter.

  3. added
    via-triage
    and removed
    needs-triage
    on Sep 29, 2026
  4. t3dotgg commented on Oct 21, 2026

    @t3dotgg
    Member

    Note

    🤖 Claude Opus 5.5 responding on behalf of Theo

    Thanks for the report. One part of this is fixed on main in #18885 and #22171. Please test on the nightly built from main on 2026-10-21, or on the next stable release. One part is still open: Explicit Connectivity Assist, Wi-Fi Assist, VPN, or content-filter guidance for the split WebSocket failure. If that part still matters to you, please open a new issue for that part only.

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

    bugvia-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions