Connecting Real Android Device ADB via Wifi

38Comments

Appium Tutorial: Connecting your Android Devices via USB for testing Native and Hybrid Apps

Most of the time when we test Native and Hybrid Android apps via Appium, we need to connect our real device through USB to a machine. In this example we will see how we can connect our ADB device via Wifi connection.

Pre-requisite:

  1. Make sure initially the Android device is connected via USB Cable to the machine
  2. Correct USB drivers are installed and the device is discoverable. Enter adb devices in cmd prompt and check if you device shows up.

  1. Make sure both Device and Machine are on same Wifi
  2. Run the cmd:

adb tcpid 5555

  • Now disconnect your device
  • Get the IP Address of you Android device
  • Run the following command to configure adb on you device via Wifi

adb connect <IP Address of your android device>

  • Open command prompt and type:

adb devices

  • Make sure the device is discoverable over the wifi network
  • Execute and run your test

Comments

  • Superb Article

    Thanks for the info sir

    awesome

    Sir, Very clear and step by step info. sir you always Rock!!!! ..vj

    gud 1

    its a very good article

    hello

    gud one

    QA

    This is very info for all automation tester..Thank you Raman...Keep rocking

    QA

    Getting unable to connect to 10.0.0.11:555

WRITE A COMMENT