xxxxxxxxxx
# Plug in your usb with your phone and laptop
# Set Developer Option: On
# Set Usb Debugging: On
# Go to CMD and Direct it to your project path
$ adb devices
List of devices attached
emulator-5554 offline # Google emulator
14cdd2cc device # Physical device
#use adb reverse
$ adb -s <device name> reverse tcp:8081 tcp:8081
$ npx react-native run-android
Try:
$ react-native run-android --deviceId=14cdd2cc
$ npx react-native start
Note: Enter your device name.
xxxxxxxxxx
Through USB debugging:
adb -s <device name> reverse tcp:8081 tcp:8081
(To find device name : *adb devices*)