Skip to content

Instantly share code, notes, and snippets.

@rolfen
Last active March 6, 2020 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rolfen/92509802773b20a0f6eed203035ee704 to your computer and use it in GitHub Desktop.
Save rolfen/92509802773b20a0f6eed203035ee704 to your computer and use it in GitHub Desktop.
Remote (wifi) control your android device through ADB

You will need to connect your phone first, using USB.

With the USB cable:

adb tcpip 5555

Find out the IP address of your phone

adb shell ip -f inet addr show wlan0

Take note of IP address.

You can now disconnect the USB cable.

If you want to find out the IP address of your phone without connecting it then connect to Wifi tethering and find your "gateway IP".

adb connect xxx.xxx.xxx.xxx:5555

scrcpy is a nice, free GUI for controlling your device, but there are other options.

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