Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I cannot use adb connect to connect via wifi to my device (nexus 5, android 6), but since i'm developping a cordova plugin using usb OTG, I really need to connect via wifi.

I tried to adb kill-server, and all solutions provided on SO, and noone is working for me... Before it was working ok (i.e android 5).

Any idea?

question from:https://stackoverflow.com/questions/33462720/adb-unable-to-connect-to-192-168-1-105555

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
897 views
Welcome To Ask or Share your Answers For Others

1 Answer

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:

  1. Make sure that Aggressive Wi-Fi to Cellular handover under Networking section in the device's developer options is turned off.

  2. 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.

  3. If ping doesn't work, turn off / on Android Wifi and go back to step 2.

  4. When it replies to the ping, connect it via usb, and:

    adb usb

    adb tcpip 5555

    adb connect 192.168.10.1:5555

  5. 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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...