Fixing a failed Xender connection between two Android phones

Fix Xender Connection Failed on Android 14/15 (5 Tested Fixes)

“Connection failed.” Two words, endless frustration. You open Xender, tap to connect, and it just… doesn’t.

If you’re on Android 14 or 15, this error is more common than it used to be — not because Xender got worse, but because newer Android versions are stricter about exactly the things Xender’s connection method depends on: background hotspots, location-gated Wi-Fi discovery, and battery management. The five fixes below each come with the why, so you can diagnose rather than guess.

Scope note: This guide is for the specific “connection failed” error on Android 14/15. For every other Xender problem (crashes, slow transfers, files not arriving), see our general guide: Xender Not Working? Complete Troubleshooting.

Why Android 14/15 breaks Xender connections

Quick background so the fixes make sense. Xender connects two phones by having one phone host a Wi-Fi hotspot and the other join it — no router, no mobile data needed. That design depends on three Android subsystems:

  1. Hotspot stays alive in the background while you switch to the Xender app
  2. Wi-Fi peer discovery, which Android has gated behind location permission since Android 10 (scanning for nearby Wi-Fi devices can reveal your location, so Google made it a location-gated API)
  3. Uninterrupted local networking — no VPN or DNS rerouting pulling traffic away from the local hotspot subnet

Android 14 and 15 tightened all three: more aggressive background killing, stricter permission enforcement, and smarter (read: more interfering) network switching. Each fix below targets one of these.

Fix 1: Turn off mobile data before connecting

The fix: On both phones, turn off mobile data (swipe down → tap the mobile data icon) before starting the Xender connection. Turn it back on after the transfer finishes.

Why it works: Modern Android has “smart network switching” — when Wi-Fi has no internet (and Xender’s hotspot never does), the phone silently routes traffic back to mobile data and can drop or deprioritize the hotspot connection. On Android 14/15 this behavior is more aggressive than on older versions. With mobile data off, the phone has no alternative route and commits to the hotspot.

When this is your problem: The connection fails immediately, or connects for a second and drops. Especially common when one phone has a strong 5G signal — the phone “prefers” the working internet over the dead-end hotspot.

Fix 2: Grant Xender location permission (set to “Allow”)

The fix: Go to Settings → Apps → Xender → Permissions → Location and set it to Allow (or “Allow only while using the app”). Then force-close Xender and reopen it.

Why it works: Since Android 10, apps can’t scan for nearby Wi-Fi peers without location permission — Google treats Wi-Fi scanning as location-deriving. Xender discovers the other phone via Wi-Fi Direct/peer discovery, so without this permission the discovery step silently fails and you get “connection failed.” On Android 14/15, permission denials are enforced more strictly, and users who tapped “Don’t allow” during setup hit this wall.

The privacy question: Yes, it’s weird that a file-transfer app wants your location. It’s not Xender being nosy — it’s Android’s API design. Xender doesn’t need your GPS coordinates; it needs the permission that unlocks Wi-Fi scanning. Grant “only while using the app,” not “all the time.”

Fix 3: Turn off VPN, ad-blocker apps, and Private DNS

The fix: Disable any VPN app, system-wide ad-blocker (AdGuard, Blokada, etc.), and Private DNS (Settings → Network → Private DNS → Off) on both phones before connecting.

Why it works: Xender’s transfer happens on a tiny local network (typically 192.168.x.x) between the two phones. A VPN tunnels all traffic — including that local traffic — through a remote server, which breaks the direct phone-to-phone path. Private DNS can similarly reroute local name resolution. The result: both phones are “connected” to the hotspot but can’t actually see each other, and Xender reports connection failure.

When this is your problem: The hotspot connects fine but the transfer never starts, or Xender shows the other device briefly then loses it. If you run a VPN 24/7, this is overwhelmingly the most likely cause.

Fix 4: Exempt Xender from battery optimization

The fix: Go to Settings → Apps → Xender → Battery (or Settings → Battery → App battery usage) and set it to Unrestricted / “Don’t optimize.”

Why it works: Android 14/15’s battery management is ruthless with background processes. Here’s the failure sequence: Phone A creates the hotspot and you switch to Xender to browse files — Android decides the hotspot-hosting process is a background battery drain and kills or throttles it. The hotspot dies mid-handshake, Phone B sees “connection failed.” Exempting Xender tells the system to leave its processes alone.

Brand-specific note: Samsung (One UI 6/7), Xiaomi (HyperOS), and Oppo/Vivo skins add their own battery managers on top of Android’s. Check for a second “auto-start” or “background activity” permission in the phone’s own settings — exact menu names vary by manufacturer and Android version.

Fix 5: Forget stale hotspot profiles and re-pair fresh

The fix: On both phones, go to Settings → Network → Wi-Fi → Saved networks, delete any saved network named like “Xender” / “AndroidShare” / the other phone’s hotspot name. Then in Xender, start a completely fresh connection (one phone taps Send, the other taps Receive — don’t reuse an old session).

Why it works: Xender reuses hotspot names and credentials across sessions. If a previous session ended badly (app killed, phone rebooted mid-transfer), the saved network profile on the joining phone can hold stale credentials. The phone then “joins” confidently with the wrong password, the handshake fails silently, and Xender shows the generic “connection failed.” Clearing saved profiles forces a clean handshake with fresh credentials.

When this is your problem: Xender used to connect between these two phones and suddenly stopped — especially after an app update or a phone restart.

The 60-second pre-transfer checklist

Tired of debugging every time? Run this checklist once per phone before you start sharing regularly — it prevents nearly all connection failures:

  • Mobile data: off during transfers (back on after)
  • Location permission for Xender: Allow only while using the app
  • VPN / ad-blocker / Private DNS: off during transfers
  • Battery optimization for Xender: Unrestricted
  • Phone manufacturer’s own “auto-start”/background permission: allowed for Xender (Samsung, Xiaomi, Oppo/Vivo)
  • Both phones on a recent Xender version from the Play Store

Do this once and most “connection failed” errors never come back.

Still failing? Receiver-side checks

If all five fixes are applied on your phone and it still fails, the problem is on the other phone. Walk through the same five fixes there — in practice, 9 out of 10 “connection failed” cases are a settings issue on one of the two devices, not a broken app.

Two more quick checks:

  • Same Xender version on both phones. A large version gap can break the handshake protocol. Update both from the Play Store.
  • Airplane mode then off. Toggling airplane mode resets the Wi-Fi/Bluetooth radio state and clears transient radio glitches — a simple, widely-reported fix.

And if the problem is broader than connection failure — crashes, transfers stalling halfway, files not appearing — head to the general guide: Xender Not Working? Complete Troubleshooting.

When it’s not settings: distance and interference

If every setting is correct and connections still drop, consider physics. Xender’s hotspot is a weak, short-range signal:

  • Stay within 3–5 meters with a clear line of sight. Walls — especially concrete — kill the signal fast.
  • Move away from routers and microwaves. A busy 2.4 GHz Wi-Fi router next to you competes for the same spectrum Xender’s hotspot uses. Step into another room and retry.
  • Phone cases with metal can attenuate the signal noticeably on some models.

If the connection establishes but transfers crawl or stall, this is almost always the cause — not a Xender bug.

FAQs

Why does Xender say “connection failed” on Android 14/15?

Most commonly: mobile data’s smart-switch stealing the route from the hotspot, missing location permission (required for Wi-Fi peer discovery since Android 10), an active VPN/ad-blocker breaking local networking, battery optimization killing the hotspot, or stale saved hotspot credentials. Work through the five fixes above in order.

Why does Xender need location permission to connect?

It doesn’t need your location — it needs the permission. Android gates Wi-Fi peer discovery behind location permission because scanning nearby devices can reveal where you are. Grant “Allow only while using the app”; Xender can’t discover the other phone without it.

Does Xender need mobile data to connect?

No — Xender transfers over a direct Wi-Fi hotspot between phones, no internet required. In fact, turning mobile data off during connection often fixes failures, because it stops Android from routing traffic away from the hotspot.

Will a VPN break Xender?

Yes, very often. A VPN tunnels all traffic through a remote server, which breaks the direct local connection between the two phones. Disable the VPN (and Private DNS, and system ad-blockers) on both phones before connecting.

Connection worked before but fails now — what changed?

Usually an Android update (14/15 tightened background and permission behavior), a Xender update, or a stale saved hotspot profile. Try Fix 5 (forget saved networks) first, then check battery optimization — updates sometimes reset it.

Do both phones need the fixes or just mine?

Both. The connection is a two-device handshake; a VPN on the receiver’s phone breaks it just as thoroughly as one on yours. Apply the checklist to both devices.

Is “connection failed” the same as transfers stalling halfway?

No — different problems. Connection failure means the phones never established the link (this guide). Stalled transfers mean the link dropped mid-transfer (usually battery optimization or distance/interference).

Should I reinstall Xender if connection keeps failing?

As a last resort, yes — but clear the app’s data first (Settings → Apps → Xender → Storage → Clear data), which wipes stale hotspot profiles and cached credentials more thoroughly than an uninstall alone. Then re-grant location and battery permissions fresh on first launch.