Expo won’t connect to my physical device

I often work on my side projects from public libraries or in the past, We Work offices, and I very quickly found that while developing my React Native apps (in Expo) and trying to testing them on physical devices, Expo wouldn’t find the device on the the network.

You can fix this by adding --tunnel to the end of your start command.
Here’s a snippet from my package.json file scripts

"start": "expo start --tunnel",

You may also need to install @expo/ngrok if it’s not already installed by default.

npm i -g @expo/ngrok

Sidenote

I actually add a new scripts to my package.json instead, so I can run it normally when I am at home, or use the tunnel when I need to. That might help when your internet connection is slow.

"start-physical": "expo start --tunnel",

If you’re not using package.json scripts, then just run expo start --tunnel directly.

That’s it!

You can find more info in the expo docs here.

Thanks…

I also dissect and speculate on design and development.
Digging into subtle details and implications, and exploring broad perspectives and potential paradigm shifts.
Check out my conceptual articles on Substack or find my latest below.


You can also find me on Threads, Bluesky, Mastodon, or X for more diverse posts about ongoing projects.

My latest articles

Designing immersive experiences

In traditional cinema, TV, or even the more modern phone screen, there’s limited screen real-estate. But removing that limitation creates a design problem…

The future is not prompt engineered

Let’s not pretend the importance of prompt engineering is ubiquitous. The most prevalent power of generative AI is in the way it adapts to us, not the other way around…

The typography of dates, times, & filenames

A deep dive into carefully considered date formatting, line length and general typography attributes of filenames…

Author:

Date:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.