Unable to connect Android phone to my project with Expo

tiến dũng nguyễn picture tiến dũng nguyễn · Aug 8, 2017 · Viewed 10.5k times · Source

I created my project in react native by CLI:

_npm install -g create-react-native-app
_create-react-native-app AwesomeProject
_cd AwesomeProject
_npm start

Then I installed expo in my Android phone, and scanned a QR code on my computer screen.

However, my phone can't connect to project, and I don't know why. It just loads and fails. This is error message:

Could not load exp:// 192.168.56.1:19000. Network response timed out.

This is view error:

"Uncaught Error: java,not.SocketTimeoutException: faild to connect to/192.168.56.1 (port 19000) after 10000 ms.

I'm trying to fix it, but still can't get it working. My phone and my laptop are on the same network. What can I do now?

Answer

Neelesh Shetty picture Neelesh Shetty · Jul 9, 2020

I had the same problem but solved by running expo start --tunnel