Wi‑Fi Direct (also called Wi‑Fi P2P) lets two Android devices talk to each other without a traditional Wi‑Fi network. It’s handy for quick file swaps, multiplayer games, or sharing a screen. However, the feature depends on a combination of hardware, firmware, and software settings. A mismatch in any of these layers can cause the connection to stall, drop, or never form.
This guide walks you through a logical troubleshooting workflow. By the end you’ll know exactly where the problem lies and how to fix it—no rooting required.
adb installed and a USB cable ready for log capture.Wi‑Fi Direct works by electing one device as the Group Owner (GO). The GO acts like a miniature Wi‑Fi hotspot, handling DHCP and routing. The other device becomes a client. The election process is automatic, but you can force a specific device to be the GO via developer options or third‑party apps.
If the GO fails to start DHCP, or the client cannot obtain an IP address, the connection will appear to succeed but data transfer will never happen.
Not every Android phone ships with a Wi‑Fi chipset that fully supports P2P. To verify:
Settings → About phone → Hardware information (or similar on your device).If you cannot find any reference, search the device’s specification sheet on the manufacturer’s website for “Wi‑Fi Direct”.
Different OEM skins label the option differently. The most common path is:
Settings → Network & internet → Wi‑Fi → Wi‑Fi Direct
On Samsung devices it appears under Settings → Connections → Wi‑Fi → Wi‑Fi Direct. On Pixel/Android‑stock it’s under Settings → Network & internet → Wi‑Fi → Advanced → Wi‑Fi Direct.
Tap the entry; the screen will show “Scanning for devices”. Do this on **both** phones at the same time.
When each phone discovers the other, you’ll see a device name and a “Connect” button. Tap Connect on one phone; the other will show a confirmation prompt. Accept it.
After a successful handshake, the UI usually displays “Connected” and may show the role (GO or client). If you see “Connecting…” for more than 30 seconds, move to the next step.
Open a terminal on the Android device (you can use the built‑in Terminal Emulator app or adb shell from your PC) and run:
ip addr show p2p-wlan0
You should see an IP address in the 192.168.49.0/24 range (the default for Wi‑Fi Direct). If the interface is missing or has 0.0.0.0, the DHCP step failed.
Use the native “Files” app or any file‑sharing app that supports Wi‑Fi Direct. Send a tiny text file (e.g., test.txt) from the client to the GO.
Successful transfer confirms that the data path works. If the transfer stalls, note the exact error message; it will guide the next troubleshooting branch.
When the UI shows “Connected” but the transfer fails, the underlying cause is often visible in the system log. Follow these steps:
Build number seven times in Settings → About phone).adb devices.adb -s DEVICE_SERIAL logcat -b main -v threadtime | grep -i "p2p"
Typical error strings you may see:
p2p_supplicant: Failed to start GO – indicates the device cannot become Group Owner.p2p_supplicant: DHCP server failed – the GO’s DHCP service crashed.p2p_supplicant: Peer connection timeout – the client never received the GO’s beacon.| Error | Likely cause | Fix |
|---|---|---|
| “Failed to start GO” | Conflicting Wi‑Fi hotspot active, or firmware bug. | Disable any active mobile hotspot, then retry. If the problem persists on a specific Android version, install the latest OTA update or use the “Force GO” toggle in the Developer options → Wi‑Fi Direct (if available). |
| “DHCP server failed” | IP address pool exhausted or corrupted. | Reset the Wi‑Fi Direct settings: Settings → System → Reset options → Reset Wi‑Fi, mobile & Bluetooth. Then reconnect. |
| “Peer connection timeout” | Interference from other Wi‑Fi networks or poor signal. | Move the devices closer (within 1 m), turn off other Wi‑Fi networks temporarily, or switch to airplane mode with Wi‑Fi enabled only. |
No p2p-wlan0 interface | Wi‑Fi Direct driver not loaded. | Reboot both devices. If the issue recurs after every reboot, the device’s firmware may lack proper P2P support; consider using a third‑party app that creates a temporary hotspot instead. |
If you’ve exhausted the steps above and still cannot establish a stable link, consider these work‑arounds:
Disabling or resetting Wi‑Fi settings will disconnect you from any active networks. Make sure you have a backup of any unsaved work before proceeding.
When using ADB, only connect devices you trust. A malicious PC could issue commands that erase data. Keep your PC’s OS up to date and avoid running unknown scripts.
Some low‑cost devices ship with a Wi‑Fi chip that supports only infrastructure mode (regular Wi‑Fi) and lacks the P2P firmware. In such cases, no amount of software tweaking will enable Wi‑Fi Direct. The only reliable fix is to use an external accessory (e.g., a USB‑OTG Wi‑Fi dongle that advertises P2P support) or switch to a different transfer method.
By following the workflow above you’ll be able to pinpoint whether the problem is a mis‑configuration, a software bug, or a hardware limitation, and apply the appropriate remedy. Wi‑Fi Direct is a powerful tool—once it works, you’ll have a fast, ad‑hoc network at your fingertips.









