Skip to content

Wireless React Native Development via ADB Over Wi-Fi

Tired of tangled USB cables? Want to freely hold your device while debugging UI issues in React Native? ADB over Wi-Fi lets you run, debug, and test your app wirelessly once itโ€™s set up correctly.

Before you start, make sure of the following:

On your Android phone:

  • Developer Options enabled
  • USB Debugging turned ON
  • Phone is connected to same Wi-Fi as your computer

On your computer:

  • Latest ADB installed (comes with Android Studio or install via platform-tools)
  • React Native CLI project already set up

Step 1: ๐Ÿ”“ Enable Developer Options on Your Phone

If not already done:

  • Open Settings โ†’ About Phone
  • Tap Build Number 7 times
  • A message appears: โ€œYou are now a developer!โ€

Go to:

  • Settings โ†’ System โ†’ Developer Options
  • Turn on USB Debugging

You may also find โ€œDeveloper Optionsโ€ directly under Settings on some devices.

Connect your Android device to your PC with a USB cable.

Then open a terminal and run:

Terminal window
adb devices

๐Ÿ”” Check your phone screen! A popup should appear:

โ€œAllow USB debugging?โ€
โœ”๏ธ [Always allow from this computer]
โœ… Tap Allow

Step 4: ๐ŸŒ Ensure Both Devices Are on the Same Wi-Fi

Section titled โ€œStep 4: ๐ŸŒ Ensure Both Devices Are on the Same Wi-Fiโ€
  • Your computer and phone must be on the exact same Wi-Fi network.
  • Hotspot connections sometimes block port communication, so use a router-based Wi-Fi if possible.

You can check the IP address of your phone by running:

Terminal window
adb shell ip addr show wlan0

Look for an IP like 192.168.1.xxx.

Run:

Terminal window
adb tcpip 5555

This restarts ADB in TCP/IP mode on port 5555. Youโ€™ll see:

Terminal window
restarting in TCP mode port: 5555

Now unplug the USB cable. Youโ€™re ready to go wireless!

Run:

Terminal window
adb connect <your-phone-ip>:5555

Example:

Terminal window
adb connect 192.168.1.105:5555

You should see:

Terminal window
connected to 192.168.1.105:5555

โœ”๏ธ Your device is now connected wirelessly!

To verify:

Terminal window
adb devices

Youโ€™ll see your device listed with its IP and port.

Now you can use:

Terminal window
npx react-native run-android

And your app will launch wirelessly!

๐Ÿ”„ Switching Back to USB Mode

If you want to switch back:

Terminal window
adb usb

This reverts ADB to USB mode.

๐ŸŸฅ unauthorized in adb devices

  • Unlock phone and check for โ€œAllow USB debuggingโ€ prompt
  • Go to Developer Options โ†’ Revoke USB debugging authorizations, then reconnect

๐ŸŸฅ cannot connect or timeout

  • Ensure both devices are on same Wi-Fi
  • Use adb kill-server and adb start-server to reset adb
  • Restart your router if port connections are blocked
  • Avoid using mobile hotspot if possible

๐ŸŸฅ Different IP after reboot

  • If your phone reboots or changes network, its IP may change. Recheck with:
Terminal window
adb shell ip addr show wlan0

You can automate the setup with this script (after first USB connect):

Terminal window
adb tcpip 5555
adb connect $(adb shell ip route | awk '{print $9}'):5555

๐Ÿ“ฆ Bonus: Persist Wireless ADB Across Reboots (Optional, Root Only)

Section titled โ€œ๐Ÿ“ฆ Bonus: Persist Wireless ADB Across Reboots (Optional, Root Only)โ€

If your device is rooted, you can run:

Terminal window
setprop service.adb.tcp.port 5555
stop adbd
start adbd

This will enable ADB over Wi-Fi at boot. Otherwise, repeat USB + adb tcpip 5555 each time after reboot.

StepAction
1Enable Developer Options
2Turn on USB Debugging
3Connect via USB and authorize
4Run adb tcpip 5555
5Disconnect USB
6Run adb connect <ip>:5555
7Run your React Native app

Wireless ADB is a huge quality-of-life boost for React Native developers. Once set up, youโ€™ll enjoy a cable-free development flow, great for testing layout, gestures, and real-world app usage.