Wireless Debugging Android 11: ADB Without USB
In this article
You can send ADB commands to an Android 11 device over Wi-Fi without a USB cable by using the built-in Wireless debugging option in Developer options. This pairs your phone and computer once, then lets you run ADB commands like installing apps, pulling logs, or capturing screenshots from anywhere on the same network. You need a computer with ADB installed, a phone running Android 11 or newer, and both devices on the same Wi-Fi network.
What You'll Need
- An Android 11+ phone with Developer options enabled (tap Build number 7 times in Settings > About phone).
- A computer (Windows, macOS, or Linux) with ADB installed. If you don't have it, download the official Platform Tools from the Android developer site and extract the folder.
- Both devices connected to the same Wi-Fi network (same router, not a guest network unless it allows device-to-device traffic).
- A USB cable for the initial pairing only—after pairing, you can unplug it.
Step-by-Step
- Enable Wireless debugging on your phone. Go to Settings > Developer options and toggle on Wireless debugging. If you don't see it, make sure Developer options are enabled first.
- Open the Wireless debugging screen. Tap the Wireless debugging entry—not just the toggle. You’ll see your phone’s IP address and port (e.g., 192.168.1.10:5555).
- Start pairing mode. On the Wireless debugging screen, tap Pair device with pairing code. A popup shows a 6-digit pairing code and a pairing port (e.g., 37123). Keep this screen open.
- On your computer, open a terminal/command prompt in the folder where you extracted Platform Tools (or anywhere if ADB is in your PATH).
- Pair your computer with the phone. Run:
adb pair IP_ADDRESS:PAIRING_PORT(use the IP and pairing port shown on the phone). For example:adb pair 192.168.1.10:37123. When prompted, enter the 6-digit pairing code from the phone. - Wait for “Successfully paired”. The terminal will confirm pairing. Now you can close the pairing popup on the phone, but leave Wireless debugging enabled.
- Connect to the phone using the main port. Run:
adb connect IP_ADDRESS:PORT(use the IP and port listed at the top of the Wireless debugging screen, not the pairing port). For example:adb connect 192.168.1.10:5555. - Verify the connection. Run
adb devices. You should see your device listed as “device” (not “unauthorized”). If it says “unauthorized,” check your phone screen for a confirmation dialog and allow USB debugging. - Run your ADB commands. Now you can use any ADB command, e.g.,
adb install app.apk,adb shell screencap /sdcard/screen.png, oradb logcat. No USB cable is needed. - To disconnect later: Run
adb disconnector just turn off Wireless debugging on the phone. You’ll need to pair again next time if you turn it off.
Common Mistakes
- Using the wrong port. The pairing port (shown when you tap “Pair device”) is only for pairing. The main connection port is shown at the top of the Wireless debugging screen. Mixing them up causes connection failures.
- Turning off Wireless debugging after pairing. If you toggle it off, the connection drops and you must pair again.
- Firewall blocking ADB. Windows or third-party firewalls may block the connection. Allow ADB through the firewall or temporarily disable it to test.
- Phone and computer on different Wi-Fi bands. Some routers use separate networks for 2.4GHz and 5GHz. Ensure both devices are on the same band or the same subnet.
- Not enabling Developer options first. If you don’t see Wireless debugging, you haven’t enabled Developer options correctly.
Tips
- Keep the phone screen on during pairing—it may turn off and cancel the pairing popup.
- Use a static IP for your phone in your router settings to avoid IP changes that break the connection.
- If you frequently use wireless debugging, consider adding the
adb connectcommand to a script or alias for one-command reconnection. - After pairing, you can unplug the USB cable immediately—the connection is over Wi-Fi.
- If you’re using a VPN on your phone, disconnect it; VPNs often block local network traffic.
Troubleshooting
Connection fails or “cannot connect to 192.168.x.x:5555”. First, verify the IP and port are correct and that Wireless debugging is still enabled. Then ping the phone from your computer: ping IP_ADDRESS. If ping fails, check Wi-Fi network and firewall. If ping works but ADB fails, try restarting ADB with adb kill-server then adb start-server, and reconnect.
Device shows as “unauthorized”. On your phone, tap “Allow” on the USB debugging authorization dialog that appears. If it doesn’t appear, revoke USB debugging authorizations (Developer options > Revoke USB debugging authorizations) and pair again.
Pairing fails with “failed to authenticate”. Make sure you entered the correct 6-digit code and that the pairing port is the one shown in the popup, not the main port. Try pairing again with a fresh popup.
ADB commands work but are slow. Wi-Fi latency is higher than USB. For large file transfers, consider using adb push with a wired connection temporarily, or move closer to the router.
Connection drops after a few minutes. This can happen if your phone’s Wi-Fi sleeps. In Developer options, keep Wi-Fi on during sleep (Settings > Wi-Fi > Advanced > Keep Wi-Fi on during sleep > Always). Also check if your router has a client isolation feature that blocks device-to-device traffic—disable it.
Wireless debugging option is missing. Ensure your phone runs Android 11 or higher. If it’s there but greyed out, connect a USB cable once and enable it from Developer options—some devices require a USB connection to toggle it on initially.
Frequently Asked Questions
Do I need the USB cable after pairing?
No. The USB cable is only needed for the initial pairing step. Once paired, you can unplug it and use ADB over Wi-Fi.
Can I use wireless debugging on Android 10 or lower?
Android 11 introduced the official Wireless debugging option. On Android 10 and earlier, you can use adb tcpip 5555 over USB first, then connect wirelessly, but it’s less secure and not officially supported. For Android 11+, use the built-in method.
Do I need root access?
No. Wireless debugging works on stock, unrooted devices. It’s a standard Developer option.
Can I use this over the internet, not just Wi-Fi?
No. Wireless debugging is designed for local network connections. For remote ADB, you’d need a VPN or port forwarding, which is risky and not recommended.
Is wireless debugging secure?
It uses a pairing code and RSA key authentication, so it’s reasonably secure on a trusted network. Avoid using it on public Wi-Fi, and turn it off when not needed.
Why does my phone show a different port each time?
The main port can change after a reboot or when Wireless debugging is toggled off and on. Always check the current IP and port on the Wireless debugging screen before connecting.