How to Enable Wireless ADB on Android
In this article
Wireless ADB lets you run Android Debug Bridge commands over Wi-Fi instead of a USB cable. You can enable it natively on Android 11 and later through Developer options, or use a one-time USB connection on older versions. Once enabled, you can install apps, grant permissions, capture logs, and use tools like scrcpy without a cable. This guide covers both methods and the most common pitfalls.
What You'll Need
- An Android phone or tablet running Android 11 or later for the native wireless debugging option. Older versions require a USB cable for the initial setup.
- A computer with Android SDK Platform Tools installed (includes the
adbcommand). Download it from the official Android developer site. - Both devices connected to the same Wi-Fi network. Wired Ethernet on the computer is fine as long as it is the same subnet.
- Developer options unlocked on the phone.
Step-by-Step
- Unlock Developer options. Open Settings > About phone and tap Build number seven times. On some Samsung devices the path is Settings > About phone > Software information > Build number. Enter your PIN or pattern if prompted. A toast confirms you are now a developer.
- Open Developer options. Go to Settings > System > Developer options (on Samsung it is Settings > Developer options). The exact label can differ slightly by manufacturer and Android version.
- Enable Wireless debugging. Scroll to the Debugging section and turn on Wireless debugging. Accept the prompt asking whether to allow debugging on this network. The toggle stays on only while you are connected to that Wi-Fi network; if you leave it, you must re-enable it.
- Pair the device (Android 11+). Tap Wireless debugging to open its screen, then tap Pair device with pairing code. A six-digit code and an IP address with port appear. On your computer, open a terminal in the Platform Tools folder and run
adb pair <IP>:<port>, then enter the six-digit code when prompted. You should see "Successfully paired". - Connect. On the Wireless debugging screen, note the IP address and port shown under IP address & Port (this is different from the pairing port). On the computer run
adb connect <IP>:<port>. A message should confirm the connection. - Verify. Run
adb devices. Your device should appear with the statusdevice. If it showsofflineorunauthorized, check the phone for an authorization prompt and tap Allow. - For Android 10 and older. Connect the phone by USB, enable USB debugging in Developer options, and run
adb tcpip 5555. Then runadb connect <phone-IP>:5555. You can unplug the cable after the connect succeeds. The phone's IP is in Settings > About phone > Status > IP address, or in the Wi-Fi network details.
Common Mistakes
- Using the pairing port to connect. The pairing port and the connection port are different numbers. Pair with one, connect with the other.
- Mixing up networks. The phone and computer must be on the same subnet. Guest Wi-Fi networks and many public networks block device-to-device traffic.
- Forgetting that Wireless debugging turns off. It disables when you disconnect from the Wi-Fi network or reboot the phone. Re-enable it and reconnect.
- Running adb from the wrong folder. If you see "adb is not recognized", open the terminal inside the Platform Tools folder or add it to your PATH.
- Ignoring the authorization prompt. The first connection shows a dialog on the phone. If you miss it, run
adb kill-serverand reconnect.
Tips
- Keep the Wireless debugging screen open while pairing; the code expires quickly.
- Use a static IP reservation on your router for the phone if you connect often, so the address does not change.
- For screen mirroring, scrcpy works over the same wireless connection once
adb connectsucceeds. - Turn off Wireless debugging when you are done. Leaving it on exposes a debugging port on your local network.
- If you use a VPN on the computer, it can route local traffic away from the phone. Disconnect it while pairing.
Troubleshooting
If adb connect times out, first confirm both devices are on the same Wi-Fi and that the phone's screen is unlocked. Restart the adb server with adb kill-server then adb start-server, and try again. If the device shows as unauthorized, revoke USB debugging authorizations in Developer options, then reconnect and accept the prompt.
If pairing fails with "wrong password", the code likely expired. Close the pairing dialog, tap Pair device with pairing code again, and enter the new code immediately. If pairing fails with a connection error, check that no firewall on the computer blocks the port, and that the router does not have AP isolation enabled.
If the connection drops after a reboot, that is expected: Wireless debugging resets. Re-enable it and run adb connect again with the new port. If the port changes every time, that is normal; always read the current port from the Wireless debugging screen.
On Android 10 and older, if adb tcpip 5555 succeeds but the connect fails, verify the phone's IP with a network scanner app or in the Wi-Fi settings, and confirm the computer can ping it. Some corporate and hotel networks block this entirely; use a home network or a mobile hotspot instead.
Frequently Asked Questions
Does wireless ADB require root?
No. Wireless debugging and adb tcpip work on unrooted devices. Root is only needed for commands that modify protected system areas.
Why does Wireless debugging disappear from the menu?
It only appears on Android 11 and later. On older versions, use the USB method with adb tcpip. On some manufacturer builds the option may be hidden or renamed, but the standard location is Developer options > Debugging.
Can I use wireless ADB without a computer?
Yes, on Android 11 and later you can pair from another Android device using a local ADB app from the Play Store, but the setup is more limited. For full command access, a computer is the practical choice.
Is wireless ADB secure?
It is as secure as your local network. Pairing uses a code, and connections require authorization on the device. Avoid enabling it on public Wi-Fi, and turn it off when finished.
Why does the port change every time?
Android assigns a random port for wireless debugging each time it is enabled. Always read the current port from the Wireless debugging screen before connecting.
Does this work on all Android devices?
The native method works on Android 11 and later across most manufacturers. The USB adb tcpip method works on older versions but requires USB debugging to be enabled first.