What is this?
Normally, you connect your Android phone to your computer using a USB cable to test apps. Wireless Debugging allows you to connect the phone to Android Studio using Wi-Fi instead of a cable.
What You Need
- Android phone (Android 11 or later recommended)
- Android Studio installed on your computer
- Phone and computer connected to the same Wi-Fi network
- Developer Options enabled on the phone
Step 1: Enable Developer Options
- Open Settings
- Go to About Phone
- Find Build Number
- Tap it 7 times
- You will see: “You are now a developer”
Step 2: Enable Wireless Debugging
- Open Settings
- Go to Developer Options
- Turn on:
- USB Debugging
- Wireless Debugging
Step 3: Open Terminal on Mac
Open Terminal and check ADB:
adb version
Step 4: Pair the Phone
On the phone:
- Open Wireless Debugging
- Tap Pair device with pairing code
- Note:
- IP Address
- Pairing Port
- Pairing Code
Example:
IP Address: 172.20.10.4
Pairing Port: 42549
Pairing Code: 123456
On your Mac:
adb pair 172.20.10.4:42549
Step 5: Connect the Phone
After pairing, return to the Wireless Debugging screen.
You will see another address like:
IP Address & Port
172.20.10.4:39017
Connect using:
adb connect 172.20.10.4:39017
Step 6: Verify Connection
Run:
adb devices
Expected result:
List of devices attached
172.20.10.4:39017 device
Common Problems
Error: “failed to connect”
Possible reasons:
- Using the Pairing Port with
adb connect - Phone and computer are on different Wi-Fi networks
- Wireless Debugging is turned off
- Device was not paired first
Fix
adb kill-server
adb start-server


