Skip to content

Huawei Android cannot use exit node #14032

Closed
Closed

Description

@timtailscale

What is the issue?

User reports that they see a heath warning saying The MagicSock function ReceiveIPv4 is not running. You might experience connectivity issues. and that tailnet device connectivity works, but connecting to an exit node causes all connectivity to stop. They are seeing this on a Huawei Android tablet running Android 12 without Google Play Services installed.

The logs show the following error, which indicates that Tailscale is requesting to exclude certain traffic from the VPN connection, but Android is not allowing it for some reason: [unexpected] VpnService.protect(87) returned false.

Steps to reproduce

No response

Are there any recent changes that introduced the issue?

No response

OS

Android

OS version

12

Tailscale version

1.74.1

Other software

No response

Bug report

BUG-023d7e6195b7e5db8f62c3b917454b51474284b0a0ddc615f145cb4c328b69e3-20241024132635Z-ba0390719e5c8712

Activity

  1. added
    OS-android
    exit-node
    bug
    on Nov 6, 2024
  2. pikesthefish commented on Jan 31, 2026

    @pikesthefish

    Hey, I've got the same issue, and still no fix in 4 months, just installed it, and no outbound connection is going through

    BUG-93560628bbf35997de5432896016f5df4b2dd9a6da69be2f24a45bd61186561e-20260131145852Z-62f17d19577b8a44

  3. henryrts commented on Mar 25, 2026

    @henryrts

    I did the following and got it to work. (Im not sure if its just one of them or all of them did it). Done on Huawei tablet HarmonyOS version 3.1.0

    1. Disable "Battery Optimization"
      Go to Settings > Apps > Apps.
      Find Tailscale.
      Tap Power Usage Details > Launch settings.
      Toggle Manage automatically to OFF.
      Ensure Auto-launch, Secondary launch, and Run in background are all toggled ON.

    2. Disable "Private DNS"
      Go to Settings > More connections.
      Select Private DNS.
      Set it to Off (instead of Automatic).

    3. Check the "Always-on VPN" Setting
      Go to Settings > More connections > VPN.
      Hold the name Tailscale -> Edit
      Enable Always-on VPN.

    Then I go to Apps -> Tailscale -> Force stop

    Open the app again and turn on VPN, and I ping a random device (in my local network, still with Tailscale turn on in host machine) and I got direct connection.

  4. added theissue type on Jun 15, 2026
  5. Jiang0977 commented on Aug 28, 2026

    @Jiang0977

    I can reproduce a closely related failure on a Huawei ADY-AL00 Android device.

    The Android client had been updated and reconnected on 2026-08-28. The exact Android and client versions are not exposed in remote peer status, but I can provide them later if needed.

    Symptom and server-side evidence

    • The Android app reported: The MagicSock function ReceiveIPv4 is not running (magicsock-receive-func-error).
    • The device remained shown as online/active, but the Linux peer saw only DERP connectivity (sin, later hkg) and could not establish a direct path.
    • Before the receive failure became severe, pings through DERP varied from roughly 117 ms to 380 ms. During the captured failure, one DERP ping took 4.089 seconds and subsequent pings timed out.
    • Ordinary tailnet-only HTTPS traffic from the Android device repeatedly reset during the TLS handshake or failed to establish, while the Linux service and its Tailscale Serve endpoint remained healthy when tested locally and from the Linux peer.
    • Force-stopping the Android Tailscale app, reopening it, and reconnecting immediately restored a direct IPv6 path. Three pings completed in 22 ms, 34 ms, and 23 ms, and the path was still direct after a 30-second observation.
    • This has recurred after reconnecting/updating, so restarting the Android app appears to be only a temporary workaround.

    Linux peer version: 1.102.2

    Bug report captured while the warning and connectivity failure were active:

    BUG-260e9fe5662faa819fcc63b3cda4c155d970c5d4e78a772ce20586cc30c21c83-20260828123228Z-9b513b2c2f57993d

  6. nickoneill commented on Nov 17, 2026

    @nickoneill
    Contributor

    Closing as a duplicate of #22097, which should be resolved in 1.106

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-androidbugexit-node

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions