Ever since getting a Nexus device, I never wanted to plug in a USB cable again. Android supports ADB debugging over WiFi, making cable-free development a reality.
Prerequisites
- Phone and computer on the same local network
- Developer Options and USB Debugging enabled on the phone
- ADB tools installed on the computer
Legacy Method (Android 10 and below)
Connect your phone via USB and switch ADB to TCP/IP mode:
| |
Find your phone’s IP address (Settings > About phone > Status > IP address), then connect wirelessly:
| |
Now you can debug wirelessly without any cables.
Troubleshooting
If the connection drops or fails:
- Make sure both devices are on the same network subnet
- Restart ADB and try again:
| |
If it still doesn’t work, plug the USB cable back in and repeat the full process.
Android 11+ Native Wireless Debugging
Android 11 introduced a Wireless debugging option that requires no initial USB connection:
- Enable Developer Options and Wireless Debugging
- Select “Pair device with pairing code”
- On your computer, run:
| |
This method uses TLS-encrypted communication, offering better security than the legacy adb tcpip approach.