Make sure both your adb host computer and Android device are on the same Wifi network.
Connect the Android device with the computer using your USB cable. As soon as you do that, your host computer will detect your device and adb will start running in the USB mode on the computer. You can check the attached devices with
adb devices whereas ensure that adb is running in the USB mode by executing
$ adb usbrestarting in USB mode$ adb devicesList of devices attachedZX1D63HX9R device
adb in tcpip mode with this command:
$ adb tcpip 5556restarting in TCP mode port: 5556
Find out the IP address of the Android device. There are several ways to do that:
- Go to Settings -> About phone/tablet -> Status -> IP address.
- Go to the list of Wi-fi networks available. The one to which you’re connected, tap on that and get to know your IP.
- Try $ adb shell netcfg.
Now that you know the IP address of your device, connect your adb host to it.
$ adb connect 192.168.0.102:5556already connected to 192.168.0.102:5556$ adb devicesList of devices attachedZX1D63HX9R device192.168.0.102:5556 device
Remove the USB cable and you should be connected to your device. If you don’t see it in
adb devices then just reconnect using the previous step’s command:
$ adb connect 192.168.0.102:5556connected to 192.168.0.102:5556$ adb devicesList of devices attached192.168.0.102:5556 device
adb kill-serverand go through all the steps again once more.