question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

development server is not started while scanning the QR code in Expo client application

See original GitHub issue

Description

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.31
  • react-native:-- react-native@0.44.3
  • expo:-- expo@17.0.0
  • node -v:v6.10.1
  • npm -v:3.10.10
  • yarn --version:N/A
  • watchman version:
  1. Operating system:windows-10
  2. Phone/emulator/simulator & version:android v 6.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:30 (6 by maintainers)

github_iconTop GitHub Comments

59reactions
San10694commented, Jun 26, 2017

@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

25reactions
danielkczcommented, Jun 29, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found