This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOR /F "tokens=9 delims= " %%a in ('adb shell ip route') do ( | |
set ip=%%a | |
) | |
adb tcpip 5555 | |
set ipwithport=%ip%:5555 | |
adb connect %ipwithport% |