'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?
Solution 1:[1]
I think this might help...
for windows run cmd from "As Administrator" then
netsh int ip reset
For Mac users
Click the Apple icon in the top left-hand corner and then select System Preferences from the drop-down menu.
Select Network.
Select your Connected internet connection (Ethernet or Wi-Fi) and then click Advanced.
- Select the TCP/IP tab and then click Renew DHCP Lease. And press Ok
Solution 2:[2]
So after a huge number of trials, I think the problem is somehow wifi related, I think this feature does not work well with WPA2 (or any kind of?) Enterprise encryption, because I was using my school Wifi, and it turned out to be okay, up and running, for the hotspot I set up with another laptop.
Solution 3:[3]
What solved this for me:
- disconnect the phone from USB cable
- restart the phone
- reconnect the phone by USB cable
(meanwhile):
adb kill-serveradb start-server
Then follow the "standard" procedure.
Solution 4:[4]
If you are connected on same network and still can't connect then check your IP twice . Sometimes it get changed. check your IP = phone settings -> About phone -> Status -> IP address
Solution 5:[5]
Try increasing the timeout in Android Device Monitor.
From Android Studio: Tools->Android->Android Device Monitor In Android Device Monitor: Window->Preferences, Android->DDMS.
In the DDMS window, increase the "ADB Connection Timeout (ms)". It defaults to 5000ms. If your app is particularly large/takes a long time to load, it may go longer than this timeout, so increasing may fix it.
Solution 6:[6]
If you are using Mac OS.
Check by clicking on the wifi icon in the toolbar. If there is any warning.
In my case there was a warning saying the wifi is using WPA protocol and its not secure.
I went to my router settings and changes the protocol to WPA2/WPA3 auto.
After that the warning went away and the wireless debugging started working.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Fenhl |
| Solution 2 | TPWang |
| Solution 3 | user3581248 |
| Solution 4 | Ruturaj Chavda |
| Solution 5 | Keithel |
| Solution 6 | Sameer Shelar |


