development server is not started while scanning the QR code in Expo client application
See original GitHub issueDescription
I recently started to learn React-Native and created a CRNA project. whenever I scan the QR code in Expo App , the application is not started on my android device though my mobile is connected to same wireless network as my PC (windows)
Expected Behavior
I tried to run “npm start” in command line.code compiled successfully and QR code generated in command line.Whenever I scan this code through Expo app it is not starting my apllication in android device.
Observed Behavior
I got following error
Something went wrong.
could not load exp://192.168.*.**:19000. Network response timed out.
error-log---
uncaught error:java.net.SocketTimeoutException: failed to connect to /192.168.*.**(port 19000) after 10000ms
Environment
react-native-scripts
:–react-native-scripts@0.0.31react-native
:-- react-native@0.44.3expo
:-- expo@17.0.0node -v
:v6.10.1npm -v
:3.10.10yarn --version
:N/Awatchman version
:
- Operating system:windows-10
- Phone/emulator/simulator & version:android v 6.0
Issue Analytics
- State:
- Created 6 years ago
- Comments:30 (6 by maintainers)
Top Results From Across the Web
expo dev client "QR CODE DETECTED No usable data found"
I run 'expo start - - dev-client', I have this problem. ... go doesn't launch the app (expo start - - dev-client) after...
Read more >React Native App with Expo - QR code not loading
Try opening the debugger in chrome and then select tunnel if your device and the development pc are not connected to the same...
Read more >Running On Device - React Native
If you used Expo CLI or Create React Native App to set up your project, you can preview your app on a device...
Read more >Develop, Deploy and Test React Native apps with Expo
Expo Client helps view your projects while you're developing them. ... You can still scan a QR code or send a link to...
Read more >How to Build and Distribute Any React Native App With New ...
Install the app onto your phone, run expo start in the project directory, scan the QR code, and start developing. Every time you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@FredyC I got an alternative for same problem please download “Expo XDE” (desktop application) it will definately solve your problem. following steps you need to follow 1-download Expo XDE for your appropriate OS(ie. windows or mac) from https://expo.io/ 2-open Expo XDE and you will find your CRNA project , click on specific project you want to run , 3- click on the gear icon in address bar and select host as a Lan , here you will find your “ipAddress:host” paste this address to your expo mobile App in explore section and if everything is right then you will get your application running on your mobile … hope it will help you
Ok, I think I’ve found the culprit. I have a Docker installed which has its own network adapter. For some reason the Expo picks this virtual network over the real one. Using env variable as @brentvatne suggested works, but it’s totally cumbersome solution.
I am wondering if this could be somehow configurable per project.