Expo : React Native, 'Error starting tunnel: Error: Starting tunnels timed out'

13,332

Solution 1

Expo and react-devtools do not go together. So if you are using react-devtools, you must uninstall it. This worked for me:

npm uninstall react-devtools -g

But I noticed some other people were successful with this here.

npm uninstall react-devtools --save-dev

Solution 2

This is mostly because your firewall is blocking it. Verify by shutting off the firewall

Solution 3

I solved this by examining my order of operations. Other people at my workplace had managed to set the project up but for some reason I ran into this error.

I was using VSCode debugger and figured out that the emulator needed expo to be open and the project to be open within expo on the simulator before tunnelling was successful. I was attempting to run the debugger without actually opening the app.

Solution 4

Try running the ngork.exe in the background.

You can download ngork at ngork

Tunnel uses ngork. I faced similar issue and running ngork at background solved me the issue. Am not sure how it fixed the 'Error starting tunnel' issue.

Hope I fill find it soon.

Share:
13,332
Naveen DINUSHKA
Author by

Naveen DINUSHKA

Passionate about agile, dev and testing

Updated on November 30, 2022

Comments

  • Naveen DINUSHKA
    Naveen DINUSHKA over 1 year

    I am connected to the same network my device and PC , how can we fix this error ,

    After restarting it gives the same error with :

    Switched to a LAN URL because the tunnel appears to be down. Only devices in the same network can access the app. You can restart the project to try reconnecting.
    

    on my device it says

    Tunnel packager ....exp.not found
    

    I am running on windows btw; Thanks