Connect Android Phone to Android Studio Wirelessly (Easy Guide)

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

  1. Android phone (Android 11 or later recommended)
  2. Android Studio installed on your computer
  3. Phone and computer connected to the same Wi-Fi network
  4. Developer Options enabled on the phone

Step 1: Enable Developer Options

  1. Open Settings
  2. Go to About Phone
  3. Find Build Number
  4. Tap it 7 times
  5. You will see: “You are now a developer”

Step 2: Enable Wireless Debugging

  1. Open Settings
  2. Go to Developer Options
  3. 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:

  1. Open Wireless Debugging
  2. Tap Pair device with pairing code
  3. 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

Leave a Reply

Your email address will not be published. Required fields are marked *

web_horizontal
About Us ♢ Disclaimer ♢ Privacy Policy ♢ Terms & Conditions ♢ Contact Us

Copyright © 2023 ResearchThinker.com. All rights reserved.