react-native: Connection to http://localhost:8081/debugger-proxy?role=client timed out. Are you running node proxy? If you are running on the device, check if you have the right IP address in `RCTWebSocketExecutor.m`.

I run

react-native init Test1

and run

react-native run-ios simulator

. After 3 secs this show up screen shot 2016-05-22 at 1 29 18 pm

Connection to http://localhost:8081/debugger-proxy?role=client timed out. Are you running node proxy? If you are running on the device, check if you have the right IP address in RCTWebSocketExecutor.m.

I am running on mac and simulator. I dono if this is a bug? I didnt even change the sample code.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

For any future readers, this usually happens when you are running “Debug JS remotely” on multiple devices. Try to turn that off on all simulators/actual devices and rerun the project. It should work.

@srshah19 not really. new project–> running on real device(and no other), in debug mode and debug js remotely . i get this error while loading jsbundle.

+1 This happens to me often while developing/debugging on device. Behavior seems to be inconsistent. The only correlation I can find is if you let the device screen turn off/go to sleep for some variable length of time, it doesn’t have to be very long. Sometimes simply restarting the build through Xcode works, sometimes I have to close packager terminal and clean the project.

That being said, I love React/RN and think you’re all awesome, keep on keepin’ on!

If anyone finds this later on, this helps: https://stackoverflow.com/a/43285071/1409779 (an answer to an SO post from the same author as this issue)

@srshah19 Happens to me every 5-30min every day. I have to switch on and then off the airplane mode to be able to connect again with the debugger. This occures even without the debugger, and even if I have the debugger on only one device connected at all (debugger and packager).