Ask Your Question
2

When I run expo start --dev-client, my application is unable to establish a connection.

asked 2021-11-13 11:00:00 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-03-20 16:00:00 +0000

nofretete gravatar image

There could be several reasons why your application is unable to establish a connection when running expo start --dev-client. Here are some steps you can take to troubleshoot the issue:

  1. Check your internet connection: Make sure you have a stable internet connection and that there are no connectivity issues on your end.

  2. Check your firewall/antivirus settings: Your firewall or antivirus software may be blocking the connection. Try disabling these temporarily and see if the issue persists.

  3. Check your device settings: Make sure your device is connected to the same network as your development machine and that the network settings allow for connections between the two.

  4. Try a different port: By default, Expo uses port 19000 for the development server. Try specifying a different port using the --port option (e.g. expo start --dev-client --port 3000) and see if that resolves the issue.

  5. Try restarting the development server: Sometimes, simply restarting the server can resolve connectivity issues. Stop the server using Ctrl + C and then restart it using expo start --dev-client.

  6. Update your Expo CLI: Make sure you have the latest version of the Expo CLI installed. You can do this by running npm install -g expo-cli.

  7. Reset your Expo cache: Sometimes, issues with the cache can cause connection problems. Reset your cache by running expo r -c and then try running expo start --dev-client again.

If none of these steps resolve the issue, try reaching out to the Expo support team for further assistance.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-11-13 11:00:00 +0000

Seen: 20 times

Last updated: Mar 20 '23