Wireless ADB lets you connect your Android device to a computer over Wi-Fi instead of a USB cable, making it easier to debug apps, run shell commands, and transfer files without being tethered. This guide covers both the modern Android 11+ method and the classic approach for older devices. You’ll need a computer with ADB installed and your phone and computer on the same network.
What You’ll Need
- An Android device (phone or tablet) with Developer Options enabled.
- A computer running Windows, macOS, or Linux with ADB (Android Debug Bridge) installed.
- Both devices connected to the same Wi-Fi network.
- A USB cable for the initial setup (only for the classic method or the first pairing).
Step-by-Step
Enable Developer Options and Wireless Debugging
- On your Android device, go to Settings > About phone.
- Tap Build number seven times until you see a message like “You are now a developer!” (you may need to enter your PIN/pattern).
- Go back to Settings > System > Developer options (the path may vary slightly by manufacturer).
- Enable Wireless debugging (Android 11 and later) or ADB over network (older Android versions).
Method 1: Android 11+ (Wireless Debugging with Pairing Code)
- On your phone, tap Wireless debugging and then Pair device with pairing code. Note the IP address, port, and 6-digit pairing code shown.
- On your computer, open a terminal/command prompt and run:
adb pair. For example:: adb pair 192.168.1.10:37000. - When prompted, enter the 6-digit pairing code and press Enter. You should see “Successfully paired”.
- On your phone, go back to the Wireless debugging screen. Note the IP address and port listed under “IP address & Port” (this is different from the pairing port).
- On your computer, connect to that address:
adb connect. For example:: adb connect 192.168.1.10:37100. - You should see “connected to 192.168.1.10:37100”. Verify with
adb devices– your device will appear as “device” (not “unauthorized”).
Method 2: Older Android (ADB over TCP/IP)
- Connect your phone to the computer via USB and enable USB debugging in Developer options.
- On your computer, run
adb devicesto confirm the device is listed (if not, check USB drivers). - Run
adb tcpip 5555. This restarts ADB in TCP mode on port 5555. - Disconnect the USB cable.
- Find your phone’s IP address: Settings > About phone > Status (or check your router’s device list).
- On your computer, run:
adb connect. For example::5555 adb connect 192.168.1.20:5555. - You should see “connected to 192.168.1.20:5555”. Run
adb devicesto verify.
Common Mistakes
- Using the wrong port: The pairing port and the connection port are different. Always use the port shown next to “IP address & Port” for connecting, not the pairing port.
- Not being on the same Wi-Fi network: Both devices must be on the same subnet. If you have a guest network or VPN, it may fail.
- Firewall blocking ADB: Windows Firewall or a third-party firewall may block ADB. Allow ADB through the firewall or temporarily disable it to test.
- Forgetting to enable Wireless debugging: On Android 11+, you must have Wireless debugging toggled on, not just Developer options.
- Using an outdated ADB version: Older ADB versions may not support pairing. Update to the latest platform-tools.
Tips
- Set a static IP for your phone in your router settings to avoid the IP changing and breaking the connection.
- Use
adb disconnectwhen you’re done to free up the connection. - If you frequently use wireless ADB, create a script or alias on your computer with your phone’s IP and port.
- On Android 11+, you can also use the
adb paircommand with the pairing code, which is more secure than the older method. - For file transfers, you can use
adb pushandadb pullover Wi-Fi just like over USB.
Troubleshooting
- “cannot connect to …: Connection refused” – Make sure Wireless debugging is enabled and you’re using the correct IP and port. Restart the Wireless debugging toggle on your phone.
- “unauthorized device” – On your phone, check for a dialog asking to allow USB debugging. Accept it. If it doesn’t appear, revoke USB debugging authorizations in Developer options and try again.
- Connection drops after a few seconds – Your phone may be going into sleep mode. Keep the screen on during the session, or adjust the sleep timeout. Also check if your router has AP isolation enabled (which blocks device-to-device communication).
- Pairing fails with “wrong pairing code” – Make sure you enter the code within the 30-second window. If it expires, generate a new one.
- ADB not recognized – Ensure ADB is installed and added to your system PATH. On Windows, you may need to run the command from the platform-tools folder.
- Works on one network but not another – Some public or corporate Wi-Fi networks block peer-to-peer connections. Use a mobile hotspot or a different network.
Frequently Asked Questions
Do I need root access for wireless ADB?
No, wireless ADB works on stock, unrooted devices as long as you have Developer options enabled.
Can I use wireless ADB without a USB cable at all?
On Android 11 and later, yes – you can pair using the pairing code without ever connecting a USB cable. On older versions, you need a one-time USB connection to enable TCP/IP mode.
Is wireless ADB slower than USB?
Yes, Wi-Fi is generally slower and has higher latency than USB, but for most commands and file transfers it’s still fast enough. Large transfers may take noticeably longer.
Does wireless ADB work over 5GHz Wi-Fi?
Yes, as long as both devices are on the same network and can communicate, the frequency band doesn’t matter.
Why does my phone show as “offline” after connecting?
This usually means the ADB daemon on the phone is stuck. Try adb kill-server then adb start-server on your computer, and reconnect. If it persists, restart your phone.
Can I use wireless ADB with Android Studio?
Yes, Android Studio’s ADB integration works with wireless connections. Just connect via the command line first, and the IDE will see the device.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Access Your Computer From Anywhere: Step-by-Step
- How to Get More Disk Space on Mac: 12 Fixes
- Wii Browser Games With a USB or Bluetooth Controller
- Delete Focus on iPhone: Quick Steps
- Open System Configuration in Windows 10: 7 Ways
- How to Connect VPN: Step-by-Step Setup Guide