Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React-Native Error: Connection to http://localhost:8081/debugger-proxy?role=client timed out

Tags:

react-native

I run react-native run-ios command and my app show for 3 secs before showing this. I am running on ios simulator

enter image description here

ExceptionsManager.js:76 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.

like image 863
phongyewtong Avatar asked May 22 '16 05:05

phongyewtong


2 Answers

For remote debugging, Your both devices must be connected to the same wifi ( network ).

like image 146
Kuldeep Saxena Avatar answered Oct 18 '22 22:10

Kuldeep Saxena


I get this issue often. Usually when I'm developing with the remote debugger on and I save codebreaking kind of error.

Try to reload... If that doesn't fix it: crlt + cmd + z. then stop remote debugging, then refresh. That will fix it but now you lost your debugger. So go again... crlt + cmd + z. this time start remote debugging, then refresh again. Your project should be back and good to go.

This works for me, but it's super annoying and time-consuming. I wish someone had a better way.

like image 21
fozzarelo Avatar answered Oct 18 '22 22:10

fozzarelo