You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
android: ping view fails for peers without an IPv4 address (IPv6-only tailnets) #22125
The bug is in the Android client rather than the daemon: Client.ping asks the peer for an IPv4 address only, so on a disableIPv4 tailnet it fails the request before anything is sent.
// android/src/main/java/com/tailscale/ipn/ui/localapi/Client.ktval ip = peer.primaryIPv4Address.orEmpty()
if (ip.isEmpty()) {
responseHandler(Result.failure(Exception("No IP address for peer $peer")))
return
}
PingViewModel.sendPing maps a failure whose message does not contain timeout to R.string.an_unknown_error_occurred_please_try_again — "An unknown error occurred. Please try again.", the string in your screenshot. That also explains "no request is made".
Nothing below the UI assumes IPv4: servePing parses with netip.ParseAddr and hands the address to LocalBackend.Ping unchanged, and an unbracketed IPv6 literal survives the LocalAPI query string intact (checked on Go 1.27.3 — ?ip=fd7a:115c:a1e0:ab12:4843:cd96:626b:1&type=disco parses back byte-for-byte). So falling back to primaryIPv6Address is sufficient, which is what PeerView already does for the peer subtitle.
Activity
android: fall back to IPv6 when pinging a peer
android: ping a peer over IPv6 when the tailnet has no IPv4
aayushbaluni commentedon Nov 3, 2026
The bug is in the Android client rather than the daemon:
Client.pingasks the peer for an IPv4 address only, so on adisableIPv4tailnet it fails the request before anything is sent.PingViewModel.sendPingmaps a failure whose message does not containtimeouttoR.string.an_unknown_error_occurred_please_try_again— "An unknown error occurred. Please try again.", the string in your screenshot. That also explains "no request is made".Nothing below the UI assumes IPv4:
servePingparses withnetip.ParseAddrand hands the address toLocalBackend.Pingunchanged, and an unbracketed IPv6 literal survives the LocalAPI query string intact (checked on Go 1.27.3 —?ip=fd7a:115c:a1e0:ab12:4843:cd96:626b:1&type=discoparses back byte-for-byte). So falling back toprimaryIPv6Addressis sufficient, which is whatPeerViewalready does for the peer subtitle.Fix in tailscale/tailscale-android#913.