Reputation: 731
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.
Upvotes: 5
Views: 8349
Reputation: 860
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:
EXPO_PACKAGER_HOSTNAME
environment variable. (On Windows) you can alternatively adjust the priority of your network adapters.adb reverse
, which makes the device able to connect via USB using the localhost
URL.Upvotes: 10