DEV Community

Cover image for How To Connect Wireless Debugging!
Kunguma Sakthivel K
Kunguma Sakthivel K

Posted on

How To Connect Wireless Debugging!

*These are just simple steps to setup the wireless debugging while developing your mobile app!
*

What is the need for wireless debugging?
Because android simulators consume lot of computer resources to run it on system. Most of the learning dev are student who have limited computation power, so this helps them to setup their mobile app in their device.

Getting Started!!!
STEP 1: Setup your phone to developer mode by multiple required number of taps on your mobile build number. After multiple taps, your mobile will switch to developer mode.

STEP 2: Connect your mobile to your computer via USB cable and type in terminal adb devices this will check your mobile is connected or not.
If not check that your mobile is in developer mode.

STEP 3: After connecting the mobile via USB, now run your react native app this will install the mobile app in your device and also make sure that both laptop and mobile is connected on same network like same wi-fi.

STEP 4: In system terminal, type ipconfig this command will tell you IP configuration and IP address. Copy the IP v4 address. Because, to connect wireless debugging we use IP v4 address to connect with phone.

STEP 5: Now open your mobile app in your mobile as shake your mobile it will make one popup.

Image description
Now, go to setting

Image description
Now, go to Debug server host & port for device

Image description
In this popup type your IP v4 address and port number that used to host the app

Example: 0.0.0.0:3000

Tip: If your restart your application or re-connected to different wi-fi network make sure that IPv4 address is same as before or repeat the process from STEP1.

Thank You! Happy Coding!!!

Top comments (0)