Skip to content

macOS (App Store, IPNExtension): direct UDP still never re-established after network change on 1.104.5 (follow-up to #22082) #22259

Closed as duplicate

Description

@fberger2

What is the issue?

Follow-up to #22082, which was closed with the statement that 1.104.5 fixes the problem (#22082 (comment)). It does not.

Re-tested on 1.104.5 (2026-11-07) with tailscale ping against two peers. Same result for both; output below for one of them. After a network change the connection falls back to DERP and direct UDP is never re-established, not even after switching back to the original Wi-Fi where it worked a few minutes earlier. Only quitting and relaunching the Tailscale app restores the direct connection.

Expected: after the network change (at the latest after switching back), a direct connection is re-established, as it is immediately after an app relaunch.

1. Wi-Fi (home), initial state: direct

$ tailscale ping muc-xxx
pong from jeff (xxx.xxx.xxx.xxx) via xx.xx.xx.xx:41641 in 29ms

2. Switched to mobile hotspot: DERP only

$ tailscale ping muc-xxx
pong from jeff (xxx.xxx.xxx.xxx) via DERP(fra) in 29ms
[... 8 more pongs via DERP(fra) ...]
pong from jeff (xxx.xxx.xxx.xxx) via DERP(fra) in 45ms
2026/11/07 12:59:36 direct connection not established

3. Switched back to the same home Wi-Fi: still DERP only

$ tailscale ping muc-xxx
pong from jeff (xxx.xxx.xxx.xxx) via DERP(fra) in 29ms
[... 8 more pongs via DERP(fra) ...]
pong from jeff (xxx.xxx.xxx.xxx) via DERP(fra) in 45ms
2026/11/07 13:03:36 direct connection not established

4. Quit Tailscale app completely and relaunch, same home Wi-Fi: direct immediately

$ tailscale ping muc-xxx
pong from jeff (xxx.xxx.xxx.xxx) via x.xx.xx.xx:41641 in 21ms

Step 3 shows this is not about the hotspot network itself. After the first network change, the client loses the ability to establish direct paths at all, until the process is restarted. This matches the analysis by @ViRb3 in #22082 (magicsock receive func exiting after a socket read error, related to #20616 / PR #21396). Detailed packet-level evidence (pongs arriving on en0 but never answered) is in #22082.

Please point me to the commit/PR that was expected to fix this in 1.104.5, so I can verify it is included in the App Store build.

Steps to reproduce

  1. Mac on home Wi-Fi, tailscale ping <peer> → via <public-IP>:41641 (direct)
  2. Switch Wi-Fi to a mobile hotspot
  3. tailscale ping <peer> → only via DERP(fra), ends with direct connection not established
  4. Switch back to the original home Wi-Fi
  5. tailscale ping <peer> → still only via DERP(fra), ends with direct connection not established
  6. Quit Tailscale app completely and relaunch
  7. tailscale ping <peer> → direct again immediately

Reproduced on 1.104.5 against two different peers.

Are there any recent changes that introduced the issue?

No response

OS

macOS

OS version

27.2

Tailscale version

1.104.5

Other software

No response

Bug report

No response

Activity

  1. croakerbcts commented on Nov 9, 2026

    @croakerbcts
    Contributor

    Per the comment by @bcreane on #22082 , if you are still able to reproduce this issue, please post a fresh bug report ID on #19504, which is the open tracker.

    Closing this as a duplicate of the tracker.

  2. added theissue type on Nov 9, 2026
  3. fberger2 commented on Nov 9, 2026

    @fberger2
    Author

    WTF? I reproduced it AND i posted output. Why is this closed again.....guys...

    Keep your bugs then....i´m out

  4. croakerbcts commented on Nov 9, 2026

    @croakerbcts
    Contributor

    As noted above - if you have reproduced the issue and have helpful output, we'd appreciate it if you'd comment with a fresh bug ID and the output on the tracking issue (#19504 ). This allows us to consolidate reports and more effectively diagnose any ongoing problem, and prevents delays due to issue duplication.

  5. fberger2 commented on Nov 9, 2026

    @fberger2
    Author

    This is no duplicate...this is the output after a new version came out and should be tested, but the issue was closed automatically meanwhile.

    But as i said...im out. Good luck

  6. ViRb3 commented on Nov 9, 2026

    @ViRb3

    @fberger2 not a Tailscale dev, but I've been following this issue closely. Can you please try the latest macOS unstable release https://pkgs.tailscale.com/unstable/Tailscale-1.105.203-macos.pkg? The root cause was only fixed partly in 1.104.5, and the other half of the fix was just merged in.

  7. fberger2 commented on Nov 9, 2026

    @fberger2
    Author

    Thanks for your reply. Its working with your version 1.105.203 !!!! Yay!!! :)

    # Wi-Fi
    $ tailscale ping server-a
    pong from server-a (100.64.0.10) via 203.0.113.20:41745 in 31ms
    
    # Wi-Fi
    $ tailscale ping host-b
    pong from fw-edge (100.64.0.1) via 203.0.113.22:41641 in 26ms
    
    # Switched to mobile hotspot (no Tailscale restart)
    $ tailscale ping host-b
    pong from fw-edge (100.64.0.1) via 203.0.113.22:41641 in 117ms
    
    # Switched back to Wi-Fi (no Tailscale restart)
    $ tailscale ping host-b
    pong from fw-edge (100.64.0.1) via 203.0.113.22:41641 in 44ms
    

    BUG-e553cb399e29d270c88a654b0682faa7a1c27a8d586ca770046e580b19f09221-20261109183643Z-f7c07bb6e0130779
    BUG-e553cb399e29d270c88a654b0682faa7a1c27a8d586ca770046e580b19f09221-20261109183711Z-fe6fc3d935989e23

  8. ViRb3 commented on Nov 9, 2026

    @ViRb3
  9. sfllaw commented on Nov 9, 2026

    @sfllaw
    Contributor

    The root cause of this issue, even though there are different symptoms, is the same as #19504. All related updates will be consolidated on to #19504, so that we can track everything in one place. Thanks for your understanding.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions