Android adb wireless/WIFI debug Operation timed out

TPWang picture TPWang · Dec 31, 2015 · Viewed 10.5k times · Source

I followed steps in this post and tried to connect to my Motorola X Gen 2 for Wifi debugging, on OS X El Cap.

I connected my phone to the laptop with usb cable, I killed and started server, the server was started successfully, and then in:

./adb devices

I got

List of devices attached
TA44909GA0  device

Then I did

./adb tcpip 5555

And I tried

./adb connect <IP addr of my phone>:5555

both with usb cable connected and disconnected, none of them worked. Both returned error message saying:

unable to connect to ***.***.***.***:5555: Operation timed out

I cannot figure out what is happening here, I tried the Android Studio plugin ADB WIFI, which returned the same message, operation timed out. I restarted everything, tried connecting with a different cable and all, nothing worked.

Does anyone know what's happening here?

Answer

Theebi Iyer picture Theebi Iyer · Dec 21, 2016

Make sure your computer and the android device are using the same wifi network. I had the same issue and fixed it after changing to the same wifi.