Please make our job easier by filling this template out to completion. If you're requesting a feature instead of reporting a bug, please feel free to skip the Environment and Reproducible Demo sections.
Expo is not loading my react app in Iphone
I'm excepting to use my phone as a emulator
What action did you perform, and what did you expect to happen?
I scanned the qr code in my console
What actually happened when you performed the above actions?
i get an error with the msg above
If there's an error message, please paste the full terminal output and error message in this code block:
There was a problem loading the experience. It looks like you may be using a LAN url. Make sure your device is on the same network as the server or try using a tunnel.
Please run these commands in the project folder and fill in their results:
npm ls react-native-scripts:1.11.1npm ls react-native:0.52.0npm ls expo: 25.0.0node -v: 9.8.0npm -v: 4.6.1yarn --version:watchman version:Also specify:
Please provide a minimized reproducible demonstration of the problem you're reporting.
Issues that come with minimal repro's are resolved much more quickly than issues where a maintainer has to reproduce themselves.
does your URL look something like this:
Your URL is: exp://192.168.1.73:19000
as opposed to this:
exp://9h-hcy.bacon.tickle_me_elmo.exp.direct:80
if so then try running:
exp start --tunnel and check to make sure you have a pretty solid wifi connection 馃挋馃対
it worked perfectly. Thanks a lot. Could you give me some details why it wouldnt work in normal conditions?
because you need to be on the same wifi network and the network cannot be behind a nat. if it is then you can't access other computers on the network
I had this issue when running Docker.
The URL given in the command line may not be the correct one. For me, it was using docker's IP instead of my actual networks local ip. I've worked around it for now by entering my local address followed by port 19000 in safari. EG: exp://192.168.1.151:19000
What you need to do is:
Go to cmd and type "ipconfig" and see which network is using the ip shown in your expo app. if it's not your router IP address then what you need to do is to go and disable the network which expo is using:
Control Panel -> Network and Internet -> Network Connections
and here disable the network that expo is using. (it should be a LAN network connection)
try to run "npm start" again, it should be working now.
If my solution is not clear feel free to ask me.
git clone https://github.com/thinkocapo/rag-tag-react-native.git
npm install
exp start
The first few times I run exp start it gives a URL like:
exp://9h-hcy.bacon.tickle_me_elmo.exp.direct:80
but then it randomly switches to:
Your URL is: exp://192.168.1.73:19000
and when I scan the QR it errors on my mobile device.
It also says in my expo CLI log:
[13:15:29] Switched to a LAN URL because the tunnel appears to be down. Only devices in the same network can access the app. Restart with `exp start --tunnel` to try reconnecting.
re-start with exp start --tunnel it still shows a URL like exp://192.168.1.73:19000, QR scan still fails.
Delete the entire project directory, and re-do git clone... npm install expo start, it then works on first try: [13:23:13] Your URL is: exp://dz-dca.thinkocapo.rag-tag-react-native.exp.direct:80
and sure enought I do ctrl+c to kill the app, I restart it and its Your URL is: exp://192.168.88.12:19000 again. Weird!
I think my mobile is on WifiFloor2 and my laptop is on WifiFloor3. I also used exp start -m tunnel and it's working now....maybe get both my devices on same Wifi, but how to get it to ignore and not care which wifi you're on? Do exp start --help to see all the CLI options
I'm at a co-working space. I'm not using a VPN. Wifi connection is fine, loading pages no issue, full strength.
Any ideas @EvanBacon ?
opened a topic on https://forums.expo.io/t/why-does-expo-url-change-when-i-re-run-exp-start/11715 and will keep ya'll posted. I'll keep researching.
I am getting a message "The internet connection appears to be offline" whereas it is online. What could be the issue? This has been persisting for days
Most helpful comment
does your URL look something like this:
Your URL is: exp://192.168.1.73:19000as opposed to this:
exp://9h-hcy.bacon.tickle_me_elmo.exp.direct:80if so then try running:
exp start --tunneland check to make sure you have a pretty solid wifi connection 馃挋馃対