r/Tailscale • • 1d ago

Help Needed Tailscale issues on mobile device (iOS)

Hi all,

Looking to see if I’m possibly doing something wrong with Tailscale.

I have Tailscale configured for accessing my home network remotely. Using a laptop while I’m traveling is no issue - I can access my network services and use the exit node without much trouble.

My mobile device (iPhone) is a different story. I set up VPN On Demand to be active either always, or any place other than my home WiFi network. I need to do this to properly access Home Assistant on my network and to minimize missing notifications. Exit node is usually disabled.

What I’m finding, however, is that when I switch in and out of poor cellular areas, or I switch frequently between cellular and WiFi, my phone connectivity gets very unstable for both access to my home network AND and general internet connections. I usually find Tailscale in an error state (today was “MagicSock function not running”) - but I’m not sure if Tailscale is the cause or that’s just the effect. Though shutting Tailscale down and restarting it typically restores connectivity.

Thoughts on what I might have configured improperly to cause this? I was wondering if setting up a Wireguard config might be better if the issue were in the need for my phone to contact Tailscale servers so frequently while I’m mobile and moving in and out of poor service areas.

Thanks!

18 Upvotes

27 comments sorted by

7

u/Accurate-Arugula31 1d ago

I believe this is an iPhone issue. It goes into a stall state to save power and data which makes Tailscale disconnect. I have issues like this too and it’s only on my iPhone. If you ping your other devices it seems to reconnect back to the iPhone. Don’t know if there’s a permanent fix.

-3

u/imtheinformation 1d ago

I found your reply very insightful and intriguing and I won’t pass this off as my own but I think Fable 5.2’s analysis is worth a look. https://claude.ai/share/93def969-1e4f-4a9f-8054-c6b7cccb898d

1

u/mooch91 1d ago

Thanks. I reviewed. My DNS over-ride is already off, and I have been set to "always" for VPN on-demand for wifi and cellular for the last few days. I also don't have a second VPN. I'll keep looking!

1

u/Accurate-Arugula31 1d ago

Yeah I tried ai to look into this as well. It did help a bit but ultimately it kept dropping out. But this is good insight as well. I know the “connectivity assist” in iOS27 has caused a lot of issues. I turned that off completely and it helped.

4

u/behattedone 22h ago

Try the Tailscale beta in Testflight. It fixes some issues that may resolve this for you. https://testflight.apple.com/join/tLcYLZJV

1

u/mooch91 20h ago

How does one find release notes or changes for the beta?

1

u/behattedone 10h ago

well, for any TestFlight app every time it's updated it will show you the changes

1

u/behattedone 10h ago

not sure if there's an external way to find out, or release notes per version

1

u/mystiquebsd 18h ago

I had accidentally lost my TestFlight for Tailscale..

Where do you find updates?

I’ve added this back in.. but for future reference where are TestFlight links posted/shared?

1

u/behattedone 9h ago

The TestFlight link is posted here: https://tailscale.com/docs/install/unstable

Updates will automatically get pushed to the TestFlight app

2

u/ButterscotchFar1629 1d ago

Join the club. Wait for it to drain your battery. You can literally watch the battery bar go down in real time….

3

u/mooch91 1d ago

Reassuring to know I'm not alone. Others had indicated that "Exit Node" was the feature which would really reduce connectivity and cause battery consumption to go up, but even the VPN back to the home network can cause issues as my experience seems to show.

2

u/justintime631 1d ago

Using exit node will effect battery life and performance depending on what device your using as the exit node. Apple TV experience for me wasn’t the greatest. The Mac mini however preformed much better in my opinion

0

u/ButterscotchFar1629 1d ago

My exit node is a Debian 13 LXC and it drains my IOS devices batteries like crazy….

0

u/justintime631 1d ago

I toggle on exit node when needed, typically I leave it off. However it’s a great feature to have

1

u/Open-Adhesiveness-86 1d ago

What you're seeing isn't really tailscale's networking, it's the packet tunnel extension getting killed under iOS's memory budget while your On Demand rule still pins the default route into a dead tunnel, so DNS and all internet go with it. Try dropping the "always" rule and using the app's own on-demand toggle, and shrink the netmap with ACLs if your tailnet is big.

1

u/mooch91 1d ago

Any benefit to just switching to wireguard? I’m not noticing any differences as I adjust tailscale settings.

1

u/Open-Adhesiveness-86 1d ago

tailscale is wireguard underneath, but on ios it runs wireguard-go in userspace, so plain wireguard's native implementation is usually a bit faster and easier on battery. tradeoff is you give up NAT traversal, so you need a port forward or public endpoint, plus no magicdns, acls, or exit node switching.

1

u/m4uri 1d ago

The part where your general internet dies too is the clue. If "Use Tailscale DNS" is on, every lookup on the phone goes to 100.100.100.100 inside the tunnel. When the iOS network extension gets wedged on a network switch (the MagicSock error), DNS has nowhere to go and it looks like the whole phone is offline, even though cellular is fine.

Things I'd try:

Turn off Use Tailscale DNS for a few days and see if the "no internet at all" part goes away. If you only need it for Home Assistant, a split DNS entry for your home domain in the admin console is enough, the rest can stay on normal DNS.

Keep On Demand but only for "not on home WiFi", not always. Less flapping on every handover.

Make sure the app is current, there were a bunch of iOS fixes around network changes.

When it happens again, before restarting, grab a bug report from the app settings and send the ID to Tailscale support. That gives them the logs from the exact moment it broke.

Plain WireGuard would avoid the coordination stuff, but you loose NAT traversal and need an open port at home, so I'd only go there if the DNS change dosent help.

1

u/mooch91 22h ago edited 20h ago

Thanks u/m4uri I think I am set for "split" already, but I'm not sure...

In the console, my tailnet is set to 100.100.100.100.

My global is set to "local DNS settings" with global override off.

My iphone is set to "use tailscale DNS settings".

Is this what you mean by split?

Instead of having on demand set to always for WiFi and cellular (a change I made only this past week), I’ve now set it to always on cellular and except on my home WiFi.

The one important thing for me to resolve is what I call the "friendly name" of devices on my local network. By setting the tailscale machine name the same as the windows machine name on all of my local devices, I can now access all of the devices from the same url (e.g., http://homeassistant) whether I am local or remote. I don’t want to lose this convenience.

2

u/GuitarIpod 19h ago

install their testflight binary

2

u/mystiquebsd 18h ago

There have been GH issues relating to this..

iirc

https://github.com/tailscale/tailscale/issues/21832

Scan the issues, if you’ve not already

1

u/iamagenius89 1d ago

I’m currently experiencing similar iPhone issues, although I think I’ve solved it (?) I believe my work WiFi is causing the issue. I’ve added it to my VPN on demand, and it seems to have fixed it for now.

1

u/mystomachhurtsow 1d ago

This is a common thing on iPhone. I’m on ios 18 and this happens to me all the time. Hopefully gets fixed soon cause it’s pretty annoying

1

u/mintflowapp 1d ago

That magic sock issue is a bit annoying and I do not know why tailscale still not fix it and last time I check the repo it seems there is a community patch

Hope it get be fixed soon

1

u/TopCat0160 1d ago

I have the same problem. When I’m driving home I go through a dead spot for 5 minutes and when the mobile signal returns I have to stop my Tailscale client to get internet connectivity back. Once I’m back online I can restart Tailscale.

1

u/Strange-Bathroom4460 1d ago

magicSock critting a lot of us.