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.
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. For me it only worked to disable all other network adapters.
Setting the REACT_NATIVE_PACKAGER_HOSTNAME environment variable or setting the priotities of the adapters did not work for me.
And of course I was on the private network and had disabled the firewall for it until I configured it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.