Skip to content

Instantly share code, notes, and snippets.

@nasrabadiAM
Created March 14, 2018 07:18
Show Gist options
  • Save nasrabadiAM/1398c210f819c88f5aed2ec91cb0cd75 to your computer and use it in GitHub Desktop.
Save nasrabadiAM/1398c210f819c88f5aed2ec91cb0cd75 to your computer and use it in GitHub Desktop.
connect android device to adb over tcp wifi

connect to my device over tcp .bat file

first of all connect to the same local network that your pc is connected. then get your phone ip in your local network and create a .bat file with the following commands. start that bat file to connect to your phonr over tcp with wifi. now you can unplug your device cable. no cable needed any more.

rem get list of devices\/\/\/
adb devices

rem start tcp in your port\/\/\/
adb tcpip 5555


rem enter your ip and port here to connect \/\/\/
adb connect 192.168.1.116:5555

rem get list of devices again\/\/\/
adb devices

@echo off

set /p foo=if any problem,try one more time :D
@nasrabadiAM
Copy link
Author

this will be work on windows systems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment