Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo dev client cannot connect to the dev server

A development build that uses expo-dev-client and Expo Application Service seems to be having trouble connecting to the dev server.

The dev client app hangs on the splash screen after running npx expo start --dev-client. The JavaScript bundle process also doesn't start.

After a while, I get the error screen on the app saying that its request to connect to the dev client timed out.

There was a problem loading the project.

This development build encountered the following error:

Failed to load app from http://172.20.1.160:8081
with error: The request timed out.

What might be the reason?

like image 334
hayata_suenaga Avatar asked Apr 18 '26 07:04

hayata_suenaga


1 Answers

Adding --tunnel to the expo start comment solved the issue.

npx expo start --dev-client --tunnel

More information on "tunneling" at this expo-cli doc page.

like image 139
hayata_suenaga Avatar answered Apr 21 '26 17:04

hayata_suenaga



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!