Skip to content

Android+Tailscale: No internet after moving from wifi to cellular #10107

Closed

Description

@williamsdyyz

What is the issue?

After moving out of range of my WIFI, the phone is connected to cellular. The phone and Tailscale say they are connected, but there is no internet. Can be resolved by either: Airplane mode on/off OR Tailscale app Active->Stop->Active

Steps to reproduce

I'm at home connected to WIFI. Tailscale says it's connected. VPN and regular internet is working fine on the phone (Pixel 6, Pixel 7, Android 13 & 14)

When I leave home, WIFI goes out of range and the phone switches to cellular. The phone says 5G data is connected. The Tailscale app say it's active & connected.

If I try browsing to a website in Chrome, eventually you get the error "This site can't be reached whatever.com's server IP address could not be found. DNS_PROBE_FINISHED_BAD_CONFIG"

Internet can be restored by toggling Airplane mode or toggling Talescale from Active to Stop and back.

The problem can sometimes be reproduced by toggling WIFI state Android while connected to Tailscale

Are there any recent changes that introduced the issue?

Have only been using Tailscale for a few months. Pretty sure it's always happened.

OS

Android

OS version

13 & 14

Tailscale version

1.48.2

Other software

Nothing else unusual. Two phones owned by different people - Pixel 6 & Pixel 7. The problem existed on Android 13 and still happens on Android 14.

Since the problem happens when away from home / not connected to WIFI and affects all network operations whether VPN or not, the rest of my home network is probably not relevant.

Bug report

No response

Activity

  1. svenstaro commented on Nov 17, 2023

    @svenstaro

    I have exactly this problem with exactly the same phones and Android versions.

  2. theonlyderpderp commented on Nov 18, 2023

    @theonlyderpderp

    I have the same issue.

  3. cterence commented on Nov 19, 2023

    @cterence

    I experience the same issue. It does not cut connectivity entirely because I can still reach IP addresses. It rather seems to mess-up the phone's DNS.

    Contrary to @williamsdyyz, I'm not able to restore DNS connectivity by toggling tailscale or airplane mode.

    Tailscale Android version is 1.53.115, running on up-to-date Android 13 on an Asus Zenfone 10.

  4. cterence commented on Nov 19, 2023

    @cterence

    #8283
    Overriding the local DNS solves the issue for me, although not an amazing workaround to impose this to all the devices in the tailnet.
    Other similar issues : #8006 #6739 #6891

  5. Boztown commented on Nov 30, 2023

    @Boztown

    I experience this as well with a Pixel 4a. After leaving the house (and wifi) and returning I no longer can access the internet from the device unless I disable or toggle Tailscale.

  6. r3n3x commented on Dec 5, 2023

    @r3n3x

    Same here, with iOS 17.2 beta and Tailscale for iOS 1.54.1.

    Interestingly, when switching FROM CELLULAR DATA TO WIFI then this bug happens SOMETIMES.
    When switching from WIFI TO CELLULAR, it happens ALWAYS.

    My workarounds are
    a. either use mobile data "only" (deactivate Wifi at the iPhone alltogether)
    or
    b. toggle OFF / ON whenever I switched from Wifi to Cellular data.

    I hope Tailscale engineers can find a solution to this bug soonest. Thanks.

  7. WreckingU commented on Dec 5, 2023

    @WreckingU

    I'm also running into this same issue on my Pixel 8. Glad it's not just me.

  8. r3n3x commented on Dec 16, 2023

    @r3n3x

    related bug reports:
    #8691
    #6075

  9. floco commented on Dec 31, 2023

    @floco

    It looks like there are some work being done on related issue for iOS (though it seems mainly for exit node): #10680
    But it doesn't speak about android.
    Very annoying, have to switch off tailscale to restore my pixel 7 internet connectivity, same on pixel 7 pro, samsung A52s, Xiaomi mi 9. Hope a fix will come as otherwise tailscale is great.
    Anyone found a work around, like automating the restart ?

  10. crayonix commented on Jan 5, 2024

    @crayonix

    Running into the same issue on a Pixel 5. Would be great if this gets addressed.

  11. added
    OS-android
    on Jan 5, 2024
  12. agottardo commented on Jan 5, 2024

    @agottardo
    Contributor

    None of the participants to this issue has attached a bug report identifier, which makes it hard for us to pinpoint what is wrong with your configuration. Would you mind reproducing the issue, then generating and attaching one here?

  13. MisguidedEmails commented on Jan 9, 2024

    @MisguidedEmails

    I've reproduced it - BUG-36cb8ecc282ea4078027fe0023866ef36eb2445809730b809caa3e4688daf603-20240109150212Z-1573825aa83a3779

    connectivity wasn't working airplane on/off then it was back, both tailscale comms and internet.

    Note: On my old phone provider an on/off of tailscale would fix it. but airplane mode on/off did the trick this time. It could be MVNO related (as previously mentioned #6739)


    well, as I was typing this, the connectivity dropped, so I guess it was only temporary - BUG-36cb8ecc282ea4078027fe0023866ef36eb2445809730b809caa3e4688daf603-20240109150415Z-ee4bc373aebb65ac

    pinging via termux still seems to work (I don't have other tools atm installed to test DNS/etc) yeah seems DNS related as resolving via dig/drill works, but not with anything else. curl works with --resolve, and I can access tailscale nodes the same way too.

  14. 9 remaining items

  15. added a commit that references this issue on Jan 19, 2024
    499ab7f
  16. MisguidedEmails commented on Feb 13, 2024

    @MisguidedEmails

    just as a follow-up, 1.58.2 was released on f-droid a few days ago, and cellular/dns/etc is working great now :)

  17. 9808us commented on Feb 17, 2024

    @9808us

    Check DNS in phone settings. For me I was using a custom DNS and then no connection to internet if tailscale is on. Then switched to Auto and now I can use internet.
    Very annoying

  18. luckylinux commented on Feb 25, 2024

    @luckylinux

    I also have 1.58.2 and it's NOT working. Neither using WiFi nor Cellular Connection.

    Using some "Ping & Net Tools" I can correctly get the DNS Record only if I explicitely set the DNS Server to one within my Tailscale Network (100.64.x.y).

    But using the "AUTO" Nameservers (which Tailscale sets on Android to 100.100.100.100) does NOT work. I cannot get any DNS record at all like that.

    MagicDNS Enabled or Disabled makes no difference in my case. Both do NOT work.

  19. adgrant93 commented on Feb 29, 2024

    @adgrant93

    Commenting to say on my Pixel 7 (GrapheneOS) and TailScale version 1.58.2 and DNS setting set to "Auto" it is now working for me. Switching back and forth from Wifi to Cellular has no issues. Thanks Dev team.

  20. bluecasita commented on Mar 28, 2024

    @bluecasita

    I have the exact same issue on the Pixel 7 Pro. Is there a fix for this yet? If so, what is it?

  21. luckylinux commented on Mar 28, 2024

    @luckylinux

    Probably moving to Netbird. since there is no interest around here ... I am facing some issues with the IDP (tried Keycloak, Zitadel, Authentik). Authentik integration with Netbird gives a weird error, but it's the most promising so far.

  22. r3n3x commented on Mar 28, 2024

    @r3n3x

    I recommend you create a new bug report and refer to this one. Let the team then merge/reopen this report. Because this one (10107) is already marked as "closed" and it seems we (users) can't re-open.

    Just to report that since approx. version 1.60 the same issue was fixed for iOS. Tailscale on iPhone now works great.

  23. antonio-ivanovski commented on Jul 4, 2024

    @antonio-ivanovski

    I also don't have internet if I have custom DNS set on my Samsung Android phone

  24. added a commit that references this issue on Jul 31, 2024
    8791872
  25. antwal commented on Feb 5, 2025

    @antwal

    I believe the bug has never been fixed; I use a Custom DNS through services like PiHole / Nextdns.

    If I enable Tailscale it does not allow me to access the internet in any way.
    If I disable the Custom DNS, tailscale works and also allows me to access the internet.

    I should use tailscale only to access a private network, not to access the internet.

    How do I solve this problem?

  26. agottardo commented on Feb 5, 2025

    @agottardo
    Contributor

    The original root cause of this issue was addressed a long time ago.

    If you're using a custom Private DNS on your Android phone, please refer to #915 which explains why that's incompatible with Tailscale due to Android limitations.

  27. locked and limited conversation to collaborators on Feb 5, 2025
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-androidbugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions