Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

How can I connect to Android with ADB over TCP?

I installed a couple of different USB-over-TCP solutions, but the connection appears to have issues since the ADB monitor reports "devicemonitor failed to start monitoring" repeatedly. Is there a way to connect directly from the client on the development machine to the daemon on the device using the network instead of the USB connection or possibly another viable options?
by

2 Answers

rahul07
1. Connect device via USB and make sure debugging is working, then run:

adb tcpip 5555
adb connect <DEVICE_IP_ADDRESS>:5555

2. Disconnect USB and proceed with wireless debugging.
3. When you're done and want to switch back to USB debugging, run:

adb -s <DEVICE_IP_ADDRESS>:5555

To find the IP address of your device, go to Settings > Wi-Fi > Advanced > IP Address on your device or run adb shell netcfg.

No root required. Only one device can be debugged at a time.
The adb command is located in the platform-tools folder of the Android SDK.
kshitijrana14
From adb --help:
connect <host>:<port>         - Connect to a device via TCP/IP

That's a command-line option by the way.
You should try connecting the phone to your Wi-Fi, and then get its IP address from your router. It's not going to work on the cell network.
The port is 5554.

Login / Signup to Answer the Question.