-1

I follow following steps for the connecting my device and already go-through this link Adb over wireless without usb cable at all and Connecting two android devices using wifi still not connected and this onle also adb error: more than one device - android

  • I connect my device to my computer via USB cable.
  • Go to platform tool path.
  • Run adb tcpip 5555.
  • Disconnect my device (remove the USB cable).
  • I Go to the Settings -> About phone -> Status to view the IP address of my phone.
  • Run adb connect :5555.

I get this error on terminal:

enter image description here

Dilip
  • 2,622
  • 1
  • 20
  • 27

1 Answers1

0

EDIT: You have to provide the device id as well to open adb over wifi when more than 1 device is connected.

adb -s <device ID> tcpip 5555

I got the asnwer from here: https://stackoverflow.com/a/38348791/4428159

provide your phone ip as well:

adb: usage: adb connect <host>[:<port>]

host is the ip address of the mobile you want to connect. You have to do this for all the devices you want to connect to.

Umar Hussain
  • 3,461
  • 1
  • 16
  • 38
  • my first device is connected properly but issue about my second device it giving error on command prompt more than one emulator or device. – Dilip Dec 28 '17 at 07:58
  • Oh ok, then go to developers setting in your phone and turn on the *adb over network* on manually. It will work for now. I will test the scenario you have given above with usb cable and let you know – Umar Hussain Dec 28 '17 at 08:01