Skip to content

Frequent disconnections on iPhone #14320

Closed

Description

@WanderingStar

What is the issue?

Tailscale succeeds in connecting, and works intermittently, but apps start reporting "connection lost" or failing to load subsequent screens. Sometimes I'm able to catch the Tailscale app with this in the header

IMG_735D991526F2-1

When tapped, that shows.

MagicSock Function Not Running
The MagicSock function ReceivelPv4 is not running. You might experience connectivity issues.
Code: magicsock-receive-func-error
Magicsock Function Name: ReceivelPv4

Steps to reproduce

  1. Connect Tailscale by tapping the big blue Connect button in the iOS app
  2. Use an app or web browser to access resources/sites in the Tailnet
  3. Get a few working responses, then connection errors

Are there any recent changes that introduced the issue?

I noticed this problem first soon after I upgraded to iOS 18.1.1. Upgrading from Tailscale to 1.76.1 to 1.78.1 didn't help. Neither did deleting the Tailscale App and reinstalling it. Neither did erasing the phone and reinstalling from a backup.

OS

iOS

OS version

18.1.1

Tailscale version

1.78.1

Other software

No response

Bug report

BUG-8e873b99077ec56786fe10c13e81d1758ffd941bd431d456ce15b1fcf4b308ee-20241208041511Z-ce41cbe5693eb336 Now

Activity

  1. added
    connectivity
    OS-ios
    on Dec 9, 2024
  2. danielraffel commented on Dec 10, 2024

    @danielraffel

    I'm experiencing this too. Performed same steps as OP (with exception of wiping/restoring my device.) also running iOS 18.1.1. And tailscale 1.78.1. No solution found, this is making it hard to rely on internet that requires tailscale since the drops are frequent. Def happening on iOS and iPadOS. Causing havoc for me.

    BUG-85bd45b25c86304ada1bf59d6c757eb69c77c76a0dd679945b96090385cfbf0c-20241210142633Z-7fedb5450e58e517

    image

  3. flammable commented on Dec 14, 2024

    @flammable

    I think this is affecting me, too. I have Tailscale 1.78.3 running iOS 18.2. It only started happening when I updated from iOS 18.1.1 to 18.2.

    All apps (Mail, Safari, games, social media) report that my internet connection is offline. Even connecting to devices on my LAN (such as speakers via Sonos or Spotify) fail. Toggling off Tailscale doesn't seem to help. Sometimes, when turning on Tailscale again, I see a "warning" symbol at the top, and a "no home relay server" message briefly appears if I tap the symbol. When I reboot, I get about 3 minutes of normal usage before things stop working again. Weirdly, the only consistent way to stay connected to the internet is to turn off WiFi and just rely on cellular data.

    BUG-675ce112a209d380052827c53ab4c30165679fd92fa08dce07e08427fe7ff72b-20241214044056Z-f0f71973bb7bc829

    Incidentally, my wife has complained about the same symptoms for the past couple of weeks. She updated to iOS 18.2 and things are working properly again for her.

  4. danielraffel commented on Dec 14, 2024

    @danielraffel

    I’m not sure what I did, but things have been stable for me over the past few days. Interestingly, the only significant change I made was upgrading AdGuard to Version: v0.107.55. Since I was dealing with DNS issues and have an unusual DNS configuration, I’m leaning towards blaming my DNS setup rather than Tailscale. Any chance others are using AdGuard and/or Quad9? Or routing through other VPNs that might be messing with DNS?

  5. 86c5868a commented on Dec 15, 2024

    @86c5868a

    Seems like the iOS app front end and the Tailscale VPN network extension is not in sync.

    Using iPhone 16 Plus & iOS 18.2. But noticed the problem long ago while using previous iPhone 14 Pro.

  6. WanderingStar commented on Dec 15, 2024

    @WanderingStar
    Author

    I'm using default DNS, no ad blocking or VPN apart from Tailscale.

  7. WanderingStar commented on Dec 17, 2024

    @WanderingStar
    Author

    The problem seems to have spontaneously resolved itself for me. I'm going to close this issue, but others can feel free to re-open it or create their own follow up issues if they are still observing this problem.

  8. gilesmartin commented on Feb 4, 2025

    @gilesmartin

    I am experiencing this exact same issue. I don’t have anything crazy in my DNS settings but I do have several app connectors configured for routing certain geo-blocked services (YouTubeTV, paramount plus, etc) to my Tailscale nodes in the U.S. (I am in Germany). Usually a few minutes after connecting my iPhone loses all connectivity and apps won’t load. Tailscale reports random magicasock not running errors (sometimes ipv6, sometimes ipv4, sometimes can’t reach DNS).

    All non-iOS devices seem to work fine. It seems to be especially prevalent on my home network (which has an OpenWRT router with Tailscale running). To get some stability I disabled on-demand for my home WiFi since it is already connected to my talent.

    iOS 18.3

    Tailscale 1.80.0

    BUG-6b56526948203b790ae0b91c323ea641c9eafed68a2ba4663d495f91a2ce1dff-20250204174612Z-bb9aa3b7a6610f88

  9. flammable commented on Feb 7, 2025

    @flammable

    I had success with resetting iOS's network settings:

    Settings > General > Transfer or Reset iPhone > Reset > Reset Network Settings

    Worked for two iPhones and an iPad. I was able to enable on-demand VPN again and everything still works OK.

  10. gilesmartin commented on Feb 10, 2025

    @gilesmartin

    I had success with resetting iOS's network settings:

    Settings > General > Transfer or Reset iPhone > Reset > Reset Network Settings

    Worked for two iPhones and an iPad. I was able to enable on-demand VPN again and everything still works OK.

    Unfortunately that doesn’t seem to have made any change. I have recently noticed in testing that the issue seems to be tied to accessing home assistant (which is one of my primary reasons for using Tailscale). If I activate Tailscale and do not open the Home Assistant app it appears to stay connected without dropping internet. As soon as I start to interact with the HA app however it appears that Tailscale drops within a few minutes. Once dropped it usually reports a magicsock error (either ipv4, ipv6, or DNS).

    In the HA app I have 4 running instances of HA. 2 are using funnel and 2 are not (due to incompatibility between funnel and app connectors)

  11. 6 remaining items

  12. freak-x commented on Mar 1, 2025

    @freak-x

    I'll join in - same issues as well, iOS 18.4, but it happened with previous iOS versions, tailscale 1.80.2. Experience it across an iPhone 14, and iPad air, doesnt seem to affect my macbook. Exact same as illuminate said above, I get about 30 seconds of connectivity then nothing. If I wait long enough I'll get blips of connectivity here and there, but the only thing that's working is disconnecting Tailscale and reconnecting.

  13. AIR4Nick commented on Mar 11, 2025

    @AIR4Nick

    Can confirm this appears to be same bug. Same attempts at resolution. Uninstall/reinstall, deleting device from TS and reauthorizing. Also the same behavior with random resolution and then bug reappearance. Nothing special about any of the networks.

  14. martinhgregory commented on Mar 27, 2025

    @martinhgregory

    Any news on a fix for this? It seems to be happening more and more on both my iPhone 15 pro and iPad 9th gen. Recently upgraded to an iPad Air M3 and it suffers from the same disconnection problem.

  15. gilesmartin commented on Mar 27, 2025

    @gilesmartin

    Not sure if any of you have directly overlapping subnets but I recently did some work on my networks (I have 5 locations connected with Tailscale site-to-site). After changing those networks to all be /25 networks but setting the advertised routes on Tailscale to be /24 the issue seems to have disappeared for me. This was recommended in troubleshooting for when you have LAN devices not preferring the local subnet over Tailscale when you can’t turn off accept-routes. I wasn’t expecting it to fix this issue for me (especially since the issue was occurring over cellular when away from home) but for some reason it seems to have done the trick.

  16. AIR4Nick commented on Mar 28, 2025

    @AIR4Nick

    We will try the /25 to /24 solution.

    This bug is absolutely crippling and we're actively exploring moving to a different solution.

  17. martinhgregory commented on Mar 28, 2025

    @martinhgregory

    Can someone please explain in simple terms what the /25 to /24 solution is and how to implement it? These constant iOS disconnection are really causing me major issues.

  18. gilesmartin commented on Mar 28, 2025

    @gilesmartin

    /24 is the notation for a net mask of 255.255.255.0 (which is the default for most routers) /25 is the notation for 255.255.255.128 which is a smaller subnet than /24. You would need to set the smaller subnet of /25 in your router as the subnet for your lan but continue to share the larger subnet of /24 on Tailscale.

    Doing so should prioritize the /25 subnet to clients on your LAN so they will prefer your local router over Tailscale.

    Again - not sure why this seems to resolve the issue as it shouldn’t make a difference when away from your LAN but it resolved the issue for me.

  19. gilesmartin commented on Mar 28, 2025

    @gilesmartin

    If you can’t change you LAN you could also try advertising a /23 subnet on Tailscale but that would require you not having another subnet in that range.

    Ie: if one of your LANs is 10.0.2.0/24 then you can’t also have a LAN of 10.0.3.0/24 as these would both be inside 10.0.2.0/23.

    https://www.calculator.net/ip-subnet-calculator.html?cclass=any&csubnet=23&cip=10.0.2.1&ctype=ipv4&x=Calculate

  20. barnstar commented on Apr 9, 2025

    @barnstar
    Member

    Sorry for the delay here. I've tried to go through as many of these bug reports as possible, there's a lot to parse. A "health warning" does not indicate a specific issue, but rather a symptom that could be common to any number of underlying network/configuration/client issues.

    There are couple of reports where it is clearly DNS (is it always DNS?). Our 1.82 client has a fix for properly setting the upstream DNS resolvers which may help in some of these cases. Definitely update if you haven't. I've found that this issue manifests at different frequencies across different across different iOS and macOS versions.

    I'm going to close this specific issue as resolved for the original poster because there's just too much overlap (and clearly more than on thing going on). If you are still encountering this issue with the latest client, please file another issue with as much detail as possible - and a link to your logs - and we'll do our best to look into it.

  21. chrischen commented on Sep 10, 2025

    @chrischen

    My iPhone is not running Malvad but I do think it is somehow related to memory.

    I have installed my home assistant instances as web apps on my iPhone and this works reliably without causing Tailscale to disconnect. I had actually been using this reliably for over 4 days with near constant access to HA.

    That said, I just opened the HA app after not using it for 4 days. Within minutes of navigating around the app reported connection was lost. Running a speed test failed and reported no internet. Opened Tailscale and it showed the error that Magicsock ipv4 failed.

    Only way to restore internet was to disconnect and reconnect Tailscale.

    I'm using the Screens 5 (VNC app) and I have similar symptoms. Specifically it happens when I connect their app with Tailscale via OAuth. It then pulls all my nodes and seems to be trying to connect to all of them or something. When I try to connect via this "integration" it then drops the connection after about 10 seconds and tailscale becomes unusable on iOS. If I stop using this integration and simply connect to the tailscale IP of the one machine manually, everything works fine and tailscale continues to run on iOS with no warnings.

  22. stmoist commented on Nov 12, 2025

    @stmoist

    I'm using the Screens 5 (VNC app) and I have similar symptoms. Specifically it happens when I connect their app with Tailscale via OAuth. It then pulls all my nodes and seems to be trying to connect to all of them or something. When I try to connect via this "integration" it then drops the connection after about 10 seconds and tailscale becomes unusable on iOS. If I stop using this integration and simply connect to the tailscale IP of the one machine manually, everything works fine and tailscale continues to run on iOS with no warnings.

    I have a similar issue as described here, also using Screen 5, and wanted to share specifics. I'm at KubeCon right now, and I have had frequent connection issues as described. When I connect to the LTE network, I've been largely fine.

    I have a similar issue at home. Frequent issues on the Verizon network, far fewer issues on the wifi at work or home (when i forget to disconnect lol).

  23. gregwelldone commented on Nov 14, 2025

    @gregwelldone

    I got the same problems, tried every possible workaround and I still get frequently disconnected.

  24. denveronly commented on Nov 18, 2025

    @denveronly

    Same, have 4 homeassistant instances. As i login to app, tailscale drops, as i use it as web browser to access HA no problem

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

    OS-iosbugconnectivityhealth

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions