tailscale / tailscale

The easiest, most secure way to use WireGuard and 2FA.
https://tailscale.com
BSD 3-Clause "New" or "Revised" License
16.79k stars 1.27k forks source link

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

Open JustDoneNow opened 1 month ago

JustDoneNow commented 1 month ago

What is the issue?

Reference is https://github.com/tailscale/tailscale/issues/10107

Issue is closed but problem is not solved for android.

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.60.1

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

BUG-e2f204f87c09b3c608da1409f2f47ba74b63abe363dcb799f5fc588574f3a320-20240404171912Z-bfef24c4f8de03d8

BUG-e2f204f87c09b3c608da1409f2f47ba74b63abe363dcb799f5fc588574f3a320-20240404171952Z-17d05ad4d6ef340d

carefulcomputer commented 1 month ago

same issue here.

JustDoneNow commented 1 month ago

Added bug report

starfishpatkhoo commented 1 month ago

I had this problem also, basically apps on my phone would have a lot of difficulty connecting to the Internet when tailscale was connected. Sometimes it worked, sometimes it was just incredibly slow.

TL;DR - on Samsung phones (One UI 6), go to Settings > Connections > More Connection Settings > Private DNS > Off

I think the default is Automatic and this would muck things up.

Once I changed it to Off everything works fine, on WiFi and on Cellular, and moving in and out of the two. Maybe this (while not strictly a Tailscale issue), should at least be noted in documentation for other users..

carefulcomputer commented 1 month ago

@starfishpatkhoo , in my case, when i turned the private dns from automatic to off, the tailscale stopped working. i couldn't access my network from my phone at all, even using IP addresses.

JustDoneNow commented 4 weeks ago

I had this problem also, basically apps on my phone would have a lot of difficulty connecting to the Internet when tailscale was connected. Sometimes it worked, sometimes it was just incredibly slow.

TL;DR - on Samsung phones (One UI 6), go to Settings > Connections > More Connection Settings > Private DNS > Off

I think the default is Automatic and this would muck things up.

Once I changed it to Off everything works fine, on WiFi and on Cellular, and moving in and out of the two. Maybe this (while not strictly a Tailscale issue), should at least be noted in documentation for other users..

Seems to work for me also, thanks for the hint. Let's see how it works in the next days.

starfishpatkhoo commented 4 weeks ago

@starfishpatkhoo , in my case, when i turned the private dns from automatic to off, the tailscale stopped working. i couldn't access my network from my phone at all, even using IP addresses.

Hmm, if IP address isn't working, that's maybe something else? Maybe you need to reauth, or reboot, or such.. Check if the VPN is active etc..

carefulcomputer commented 3 weeks ago

i deleted docker container's mounted volume and restarted and it started to work. thanks. I hope DNS issue does get resolved though. I am going to try the auto DNS turned off.

JustDoneNow commented 3 weeks ago

i deleted docker container's mounted volume and restarted and it started to work. thanks. I hope DNS issue does get resolved though. I am going to try the auto DNS turned off.

The issue has nothing to do with docker. I also got the it with auto DNS deactivated. So that's not a solution to the problem either.

NimecShady commented 2 weeks ago

Just wanted to chime in as well and say both my phone and my wifes phone (Pixel7 & Pixel8) both also lose internet connectivity when leaving our house and going from Wifi to cellular. The only way we have found to fix it is to turn tailscale off and back on again through the app. My friend using an iPhone does not have similar experience so sounds like an android specific issue?

kari-ts commented 1 week ago

Hi! We recently fixed a DNS issue. We'd really appreciate your help testing it out to see if it fixes your issue! Please become an open tester to try out our beta here. If you prefer to wait, this will be out as part of the 1.66 release.

JustDoneNow commented 1 week ago

Hi! We recently fixed a DNS issue. We'd really appreciate your help testing it out to see if it fixes your issue! Please become an open tester to try out our beta here. If you prefer to wait, this will be out as part of the 1.66 release.

Is this fix included in 1.65.95-t71e9258ad-g5ea9a50ba57? I'm already a beta tester and will check out the behavior.