Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Logs received

Methods I tried:

  1. I used 3 different networks. One using public wifi, one using home wifi and lastly using 4G hotspot.

  2. 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

like image 466
Irvin ting sie ze Avatar asked Mar 11 '20 12:03

Irvin ting sie ze


3 Answers

Updating these node packages solved my problem:

expo-cli and @expo/ngrok

like image 177
Dabir Rahamni Avatar answered Oct 20 '22 14:10

Dabir Rahamni


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

like image 2
mayurkale Avatar answered Oct 20 '22 15:10

mayurkale


I had the same error message, but running the command r to restart expo worked for me.

expo r --tunnel

Hope this helps you

like image 1
Jose Rojas Avatar answered Oct 20 '22 15:10

Jose Rojas