- In this demo, We will learn step by step to configure WIFI debugging for Android-React Native application development environment.
- ADB stands for Android debug bridge.
- ADB provides CLI-Command line interface to communicate between mobile and development environment.
- ADB is built on 3 components:- daemon process,server process, client CLI.
- The daemon process runs on the target mobile as a background process.The server process run on Development machine in our case it is my laptop.The client CLI provides the shell where we can execute the ADB commands.
- Connect Mobile and laptop to same WIFI network.
- Also connect the Mobile to laptop through USB cable for the 1st time setup.
- Run the following command : adb tcpip 5555 : It makes device to listen to port number 5555.
- Disconnect USB from mobile and laptop.
- get ip address of mobile, present in WIFI Setting > Advanced > ip address
- Let the ip address we found in the WIFI setting is 192.168.0.101
- Open the terminal window on your laptop.Verify the ADB is installed properly in the machine by executing adb command in terminal.
- If ADB is installed properly, execute the command adb connect 192.168.0.101 in terminal.
- If the previous command log a message connected to 192.168.0.101:5555 successfully then Mobile is ready for WIFI debugging.
- Now we can check the device is present in the device list in ADB.To check all the connected devices to ADB use the following command adb devices in terminal.