USB vs. Wireless ADB — Which Should You Set Up First?

Connect your own Android test phone by USB, then switch to wireless debugging and check which connection is active.

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.

Two ways to connect an Android test phone to the computer running ADB

Both routes end with the same check. Look for your phone in the computer’s device list.

Start with a cable

  1. Install Android SDK Platform-Tools on the computer. Run adb version to check that the terminal can find it.
  2. Enable developer options and USB debugging on your test phone. Unlock it, connect the cable and approve the computer when Android asks.
  3. Run adb devices -l. Look for a serial number followed by device. If you see unauthorized, 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
USB debugging enabled in an example Android Developer options screen

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

Change the transport with the target held constant
  1. Verify USB first

    Get one successful device listing with a cable before introducing wireless settings.

  2. Pair the same phone

    Use the phone’s documented wireless debugging screen and check the selected target.

  3. 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.