ADB : unable to connect to 192.168.1.10:5555

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

提交回复
热议问题