React Native: Could not connect to development server React Native: Could not connect to development server reactjs reactjs

React Native: Could not connect to development server


Running a React Native app on an iOS device requires specifying the host machine's IP address instead of localhost:

jsCodeLocation = [NSURL URLWithString:@"http://DEV_SERVER_URI:8081/index.ios.bundle?platform=ios&dev=true"];

More specific instructions can be found in this answer.


  1. Close metro bundler window command line which opened automatically.
  2. Run the command again, “react-native run-android” or "react-native run-ios".


Ensure that the device and Macbook are on the same wifi network and plugged in with the lightning-USB cable.See docs for more info