react-nativeexpocreate-react-native-app

Unable to connect to expo xde using expo client on local network


I need help about expo xde. After creating project, when I scan QR Code it is giving me following error:

there was a problem loading the experience. It looks like you may be using a LAN url. 
Make sure your device is on same network as server or try using a tunnel

exp://*.*.*.*:19000
Error Code: NETWORK_ERROR
Code: -1004

My mobile device is on same network as my laptop.I am using:

OS: window 10
Node Version: 8.9.4
NPM Version: 4.6.1

It works on tunnel connection but it is bit slow.


Solution

  • This error means the mobile device can not connect to the development server running on your laptop.

    Possible reasons for this include:

    To fix this you could: