-
Notifications
You must be signed in to change notification settings - Fork 282
Description
π Issue: adb reverse tcp:8081 fails β Address already in use (React Native Android)
Description
While running the React Native app on a physical Android device, the build and installation complete successfully, but the app fails to connect to the Metro development server due to an adb reverse error.
Command Used
npx react-native run-android
Expected Behavior
The app should connect to the Metro server via:
adb reverse tcp:8081 tcp:8081
Actual Behavior
The following error occurs:
adb.exe: error: cannot bind listener: Address already in use
warn Failed to connect to development server using "adb reverse"
As a result, the app launches but does not connect to Metro.
Full Error Log (Relevant Part)
info Connecting to the development server...
adb.exe: error: cannot bind listener: Address already in use
warn Failed to connect to development server using "adb reverse": Command failed:
C:\Users\hibba\AppData\Local\Android\Sdk\platform-tools\adb -s 44ffd4c20506 reverse tcp:8081 tcp:8081
info Starting the app on "44ffd4c20506"...
Environment
OS: Windows 10
Node.js: v24.11.1
npm: v11.6.2
React Native CLI
Device: Physical Android device
44ffd4c20506 device
Libraries:
@react-native-firebase/app v23.5.0
@react-native-firebase/messaging v23.5.0
@notifee/react-native v9.1.8
Android SDK:
compileSdk: 36
targetSdk: 36
minSdk: 24
What Iβve Tried
adb kill-server
adb start-server
adb devices
β Device reconnects correctly, but the issue persists when running the app.
Additional Notes
Build is successful β
APK installs successfully β
Issue appears to be related to port 8081 already being in use or adb reverse failing to bind on Windows
Happens consistently on a physical device
Questions
Is this a known issue with Windows + adb reverse?
Is there a recommended workaround (manual port forwarding, alternate port, etc.)?
Could Node 24 / npm 11 be contributing to this?