ADB : unable to connect to 192.168.1.10:5555
I had the same issue since the android 6 upgrading. I noticed that for some reason the device is playing "hard to get" when you try to contact it over WIFI.
Try these following steps:
-
Make sure that
Aggressive Wi-Fi to Cellular handover
under Networking section in the device's developer options is turned off. -
ping continuously from your pc to the device to make sure it's not in network idle mode
ping -t 192.168.1.10
(windows cmd), unlock the device and even try to surf to some website just to make it get out of the network idle. -
If ping doesn't work, turn off / on Android Wifi and go back to step 2.
-
When it replies to the ping, connect it via usb, and:
adb usb
adb tcpip 5555
adb connect 192.168.10.1:5555
-
In case it's still not connected, try to switch the USB connection mode as MTP / PTP / Camera while the device is connected through USB and repeat these steps over again...
If the above points are not working please try running ADB as admin. For Ubuntu -
`sudo adb start-server`
I had the same issue. i tried all commands like adb kill-server
then
adb tcpip 5555
then
adb connect <IPAddress>:5555
but the issue remain same
the IP address which i used to connect ... showing me message unable to connect .....
what i did is go to phone's settings
then About phone
then Status`
then check IP address
Now try to connect phone with that IP address
Note : - The problem is the IP address changed which i used to connect
I had the same problem. The solution was as follows.
In Developer Options. + Activate "Allow ADB debugging in load only mode." + In Spanish, "Permitir depuración ADB en modo solo carga."
Explanation My problem was as follows: I was doing all the steps:
- adb kill-server
- adb start-server
- adb tcpip 5555
- adb connect (your ip).
After completing these steps, I disconnected the phone from the USB cable, and the connection was lost, I could not make the wireless connection.
However, this worked for me on a Huawei ALE-23 cell phone, but it did not work for me on the Huawei Y9S cell phone (Android 10), it failed.
I solved it only by activating the option "Allow ADB debugging in load only mode" in the cell Huawei Y9S.
Cheers!!!.
Make sure you are not connected to a VPN. I was able to connect to adb as soon as I disconnected from the VPN. For a sure way to connect do this:
- Unplug USB
- Restart Android device
- Shutdown Android Studio or any other IDE using ADB
adb kill-server
- Plug back in USB after restart
-
adb devices
This automatically starts the server. You sould see the device plugged in via USB -
adb shell ip addr show wlan0
to get your devices IP address -
adb tcpip 5555
Set the port to 5555 that you want to connect through -
adb connect 192.168.0.6:5555
Replace IP address with one from step 6. - Disconnect the USB