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
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:
adb kill-server
adb devices
This automatically starts the server. You sould see the device plugged in via USBadb shell ip addr show wlan0
to get your devices IP addressadb tcpip 5555
Set the port to 5555 that you want to connect throughadb connect 192.168.0.6:5555
Replace IP address with one from step 6.