'Tunnel URL not found, falled back to LAN URL
How do I run my expo app using the tunnel? It worked last week but for the last 3 days, it stopped working.
Code written: expo start --tunnel
Methods I tried:
I used 3 different networks. One using public wifi, one using home wifi and lastly using 4G hotspot.
Logging into expo account before running
expo start --tunnel
https://forums.expo.io/t/tunnel-url-not-found-failed-back-to-lan-url/14380/7
Is there any other way I can try to make the Tunnel URL to work?
EDIT: Sorry for the late update, but the solution I got is in this link! Expo forum discussion
Solution 1:[1]
Updating these node packages solved my problem:
expo-cli and @expo/ngrok
Solution 2:[2]
Your development laptop/computer needs to be on the same network as your mobile.
I connected my phone to my home wifi router and turned off 4g
Then I connected my laptop to the same wifi router
I created an account with expo and logged in by performing expo login and filling in the details
I then published by performing expo publish
I then scanned the qr code and it loaded and build the project onto my iphone
I then went into the root of the project and typed expo start --tunnel and it worked
Solution 3:[3]
First, I would like to point out that I am logged into my expo account. I also removed babel-preset-react-native
, and am now using metro-react-native-babel-preset
, because the former was deprecated. These might be a few things you want to try if it still doesn't work. Find instructions for Metro here.
Anyway, the thing that worked for me was downgrading to Node LTS.
Solution 4:[4]
Worked when i connected my device and turned on usb tethering
Even i had the same issue . i pressed ctrl+c and then this time tried this command : "expo restart" After this, i got a message in terminal saying "tunnel ready"
Solution 5:[5]
I had the same error message, but running the command r
to restart expo worked for me.
expo r --tunnel
Hope this helps you
Solution 6:[6]
If you are on a silicon chip you might need to install rosetta 2 by entering the following command into a terminal: softwareupdate --install-rosetta
Solution 7:[7]
I solve this. Installing @expo/ ngrok the version who expo was trying to install. After that I run
expo start --tunnel
Again it works but fail again. To solve this I just need to click in tunnel connection again in expo dashboard and it works.
When I restart my computer and restart app with expo start --tunnel it works well and don't stop again.
Solution 8:[8]
The instructions are not intuitive, so here is a fix:
npm install @expo/ngrok
brew install ngrok
ngrok http 3000
expo start --tunnel
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Ryan Le |
Solution 2 | |
Solution 3 | IOI |
Solution 4 | Community |
Solution 5 | Jose Rojas |
Solution 6 | Simon |
Solution 7 | Zorayr |
Solution 8 | Zorayr |