USB vs. Wireless ADB — Which Should You Set Up First?
Use USB for your first connection if you have a data-capable cable. You can confirm that the computer recognizes your phone before you have to think about Wi-Fi, pairing codes or ports. If you need to work without a cable, Android 11 and later also support pairing directly with a computer over Wi-Fi.
Both routes end with the same check. Look for your phone in the computer’s device list.
Start with a cable
- Install Android SDK Platform-Tools on the computer. Run
adb versionto check that the terminal can find it. - Enable developer options and USB debugging on your test phone. Unlock it, connect the cable and approve the computer when Android asks.
- Run
adb devices -l. Look for a serial number followed bydevice. If you seeunauthorized, check the phone for the authorization prompt. An empty list is a reason to check the cable and USB port first. Android's hardware setup guide
The USB debugging switch appears inside Developer options in this screenshot from the Open-AutoGLM team. Its position can vary by phone. Original screenshot · Image credit and license
Move the same phone onto Wi-Fi
Verify USB first
Get one successful device listing with a cable before introducing wireless settings.
Pair the same phone
Use the phone’s documented wireless debugging screen and check the selected target.
Compare what survived
If the device disappears, check the connection and target ID before changing the model.
Put the computer and phone on the same Wi-Fi network. In the phone's developer options, open Wireless debugging and choose the pairing-code option. Use the address and port in that pairing dialog with adb pair IP:PAIRING_PORT, then enter the code when prompted. The capitalized parts stand for the values on your phone. Android wireless debugging instructions
Unplug the cable and run adb devices -l again. If pairing succeeded but the list is empty, return to the main Wireless debugging screen. Enter adb connect IP:CONNECTION_PORT using the address shown there. The connection port can differ from the pairing port. Once the phone appears as device, run adb shell getprop ro.build.version.release. The returned version should match the Android version in the phone's settings. Turn off wireless debugging when you're finished.