Gekinzuku - Random tech posts, software, and travel pictures.

Connect to ADB over TCP, without a USB.

Published on: Oct. 23, 2019, 5:20 p.m. by assemblarg.

If you ever needed to use ADB over wifi, you may be familiar with the traditional method of starting adb in tcp mode by first connecting the android device to your computer with a USB and running the following:

$ adb tcpip 5555

You can then disconnect the USB and connect with:

$ adb connect [Phone-IP]

This works well and doesn't require root, but sometimes you may want to start adb in wireless mode without having to connect a USB first. As long as you have a rooted device, you are in luck. On the android device, run the following commands (Use something like: termux, connectbot to run on the phone to do so):

$ su
# setprop service.adb.tcp.port 5555
# stop adbd
# start adbd

You can now connect to the device with the "adb connect" command. If you want to switch ADB back to listen on the USB:

# setprop service.adb.tcp.port -1

Posted in: Android