Connect Android Device with Wireless Debugging (ADB)
ADB allows you to debug an Android device over Wi-Fi instead of USB.
One-time setup (only once per device)
Enable Developer Options
- Open Settings
- Go to About phone
- Tap Build number 7 times
Enable Wireless Debugging
- Settings
- Developer options
- enable Wireless debugging
Steps you must do every time
1. Start pairing on the phone
- Developer options
- Wireless debugging
- Pair device with pairing code**
You will see:
- IP address
- Pairing port
- Pairing code
2. Pair from your computer
adb pair <ip>:<pair-port>
Example:
adb pair 192.168.1.12:37123
Enter the pairing code shown on the phone.
3. Connect to the device
adb connect <ip>:<debug-port>
Example:
adb connect 192.168.1.12:5555
4. Verify connection
adb devices
Your device should appear as:
192.168.1.12:5555 device
✅ You can now install apps, run logs, and debug without a USB cable.
🔥 Script: Connect with one command
Replace the variables with your values:
IP=ip \
PAIR_PORT=port \
DEBUG_PORT=debug_port \
adb pair $IP:$PAIR_PORT && \
adb connect $IP:$DEBUG_PORT && \
adb devices
after that you’ll be asked to enter the pairing code shown on the phone.