Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android adb wireless/WIFI debug Operation timed out

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?

like image 991
TPWang Avatar asked Dec 31 '15 20:12

TPWang


People also ask

How do I change my connection timeout on ADB?

First Open Android Studio You have to move in File -> Setting Then Click on Task option from the vertical-left sidebar. Then the Connection timeout option should be there. In textbox you can specify your value in milliseconds. By default it 5000 milliseconds but you can changed it.

How do I debug my wireless ADB?

If you are using Android 11 click on the build version many times to activate the developer option then go to Settings>Advanced>Developer options. Scroll to debugging and turn on the "Wireless debugging" checkbox. Then open the menu debugging by touching the "Wireless debugging".

Why ADB connect not working?

Failed ADB connections usually have one root cause: bad Android USB drivers that load in place of the right ones. Windows doesn't make it easy to remove the wrong drivers, unfortunately. But before attempting to troubleshoot an ADB connection, first enable USB debugging on your phone if it's not on already.


1 Answers

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.

like image 63
Theebi Iyer Avatar answered Oct 21 '22 11:10

Theebi Iyer