Skip to content

Android network stops working after going through subway #8312

Closed

Description

@jglamine

What is the issue?

This is an odd one, but I'm able to consistently reproduce it and it seems like tailscale is the cause.

I have a Pixel 7 phone with tailscale set as the vpn. I'm not using an exit node. When I go though the subway and loose cellular connection, internet won't work once my phone re-connects to the cell tower. It shows full bars but web pages don't load. Rebooting the phone fixes the problem.

The odd thing is this only happens if I have tailscale enabled. If I disconnect from tailscale, going through subway tunnels works fine - it reconnects once I'm out of the tunnel and I don't need to reboot the phone.

This also sometimes happens when moving from wifi to the mobile network - for example when leaving a building.

Steps to reproduce

  1. Enable the tailscale vpn on android.
  2. Verify that you can load web pages
  3. Go somewhere without cell service - for example a subway or put your phone in a faraday cage
  4. Observe that your phone has no cell signal.
  5. Try to load a web page - observe that it fails.
  6. Go back to somewhere where there is cell service.
  7. Observe that your phone claims to be connected with full bars
  8. Try to load a web page - observe that it fails
  9. Disconnect from tailscale - web pages should work again. If not, rebooting the phone fixes the problem.

Are there any recent changes that introduced the issue?

I got a new phone 1-2 months ago and that's when I started seeing the issue.

OS

Android

OS version

Android 13 - May 5, 2023 security update

Tailscale version

Tailscale 1.40.0-t9bdaece3d-ge0ba590be3e

Other software

No response

Bug report

No response

Activity

  1. added
    needs-triage-support
    and removed on Jun 17, 2023
  2. RaheelJameel commented on Aug 21, 2023

    @RaheelJameel

    I am also facing a similar issue on the Android client. I would like to add more info about this.

    It appears that the Android client is not able to re-initiate an interrupted connection.

    Example:

    1. Start the Tailscale Android app and turn on the VPN.
    2. Verify that the Tailscale app shows "Active" status and you are able to connect to clients and/or services in the Tailscale network.
    3. Switch Wi-Fi networks or turn off Wi-Fi and then turn it back on again
    4. Try to connect to clients and/or services in the Tailscale network, the connection will fail.
    5. Check the Tailscale app, it will still show "Active"
    6. Turn off the VPN in the app and then turn it on again
    7. Now the Tailscale app will show the status "Starting..." and this never changes to "Active".
    8. Turn off the VPN in the app and then close the app.
    9. Open the app again and turn on the VPN.
    10. Verify that the Tailscale app shows "Active" status and you are able to connect to clients and/or services in the Tailscale network.
    11. Sometimes even on closing and reopening the app the connection still fails and you need to go to Android settings and force stop the Taiscale app and then try again.

    Tested these app versions and both have the issue:
    1.44.1-ta377e1363-g584245cc823
    1.48.0-t77c732357-g388b71affe8 (latest at time of comment)

  3. taydy00 commented on Sep 5, 2023

    @taydy00

    I have this same issue, GrapheneOS (Android 13) on a Pixel 6. It makes it hard to switch fully to Tailscale, and I still have to leave my Home Assistant and other services exposed to the open web until this can be fixed.

  4. kelivel commented on Sep 5, 2023

    @kelivel
    Contributor

    I've tried reproducing this with no luck so far. Next time this happens, can you generate a bugreport immediately after (or during) you lose network connection and copy those here?

  5. taydy00 commented on Sep 5, 2023

    @taydy00

    Yes actually, right after I commented this I also sent in a support request via their page. This is the bug report string I was given from the Tailscale app:

    BUG-6e4e8957a648ea1e17080b4a8bfa1a55a9ac003e7fa8f4cdb3dfd2c6d8bc7bce-20230905153534Z-35ca77c409770193

  6. kelivel commented on Sep 7, 2023

    @kelivel
    Contributor

    I'll close this one as a duplicate of #8283. @taydy00 and I did some troubleshooting over email and for them, overriding their tailnet's local DNS settings seemed to help in the interim. We'll continue investigating on #8283.

  7. lucaslgr commented on May 5, 2024

    @lucaslgr

    I'm having this issue nowadays, but it happens for all my devices, not only android ones. I've configured a local DNS IP and marked to override it in Tailscale but nothing has changed. At the first time that I setup my local server, everything was working properly when I was accessing my local applications through another remote networks using Tailscale VPN.
    Anyone could help me with this issue please?

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

    bugneeds-triage-support

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions