ADB : unable to connect to 192.168.1.10:5555

后端 未结 14 857
天涯浪人
天涯浪人 2021-01-31 08:44

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

相关标签:
14条回答
  • 2021-01-31 09:11

    In my case I had to shut of and on the wifi adb debugger app, on the device. On another USB device I had to shitch off and on developer mode, then re-set the development options. Also reset my pc.

    Seem that adb in some way made a mess with global communication and all the debug communication have to be reset on both sides.

    After this the devices start to comunicate again

    0 讨论(0)
  • 2021-01-31 09:12

    I used the same approach as @IVAN MANJARREZ ADB : unable to connect to 192.168.1.10:5555

    The only difference was I used Huawei - p20 pro. Where for p20 - pro, you have to search for and activate "Allow ADB debugging in charge only mode"

    0 讨论(0)
  • 2021-01-31 09:17

    To connect your phone to adb you can use the given steps... To download ADB manually go to given link... https://developer.android.com/studio/releases/platform-tools.html

    • Unplug USB
    • Restart Android device
    • Shutdown Android Studio or any other IDE using ADB
    • adb kill-server
    • Plug back in USB after the 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
    0 讨论(0)
  • 2021-01-31 09:18

    So my situation was that i restarted it in tcp mode but still couldn't connect, i had an No route to host error ,so i tried pinging it but i couldn't find it either even though it was on the arp table. so what i noticed was that when i connect it by usb, it pings successfully. so i had to do the adb connect ip before i could unplug the usb.

    0 讨论(0)
  • 2021-01-31 09:24

    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
    
    0 讨论(0)
  • 2021-01-31 09:25

    connect using USB and Just use this command

    adb tcpip 5555

    It will restart services

    0 讨论(0)
提交回复
热议问题