ADB : unable to connect to 192.168.1.10:5555

后端 未结 14 984
天涯浪人
天涯浪人 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:08

    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:

    1. Unplug USB
    2. Restart Android device
    3. Shutdown Android Studio or any other IDE using ADB
    4. adb kill-server
    5. Plug back in USB after restart
    6. adb devices This automatically starts the server. You sould see the device plugged in via USB
    7. adb shell ip addr show wlan0 to get your devices IP address
    8. adb tcpip 5555 Set the port to 5555 that you want to connect through
    9. adb connect 192.168.0.6:5555 Replace IP address with one from step 6.
    10. Disconnect the USB

提交回复
热议问题