I have HTC M8s with Expo installed on which I want to test my apps written in React Native. I run my app in a console, scan QR code and try to connect to my app from my smartphone - unfortunately, I see an error saying that it could not load exp://myaddress:port.
I am using Windows 10 and both my PC and my smartphone are connected to the same WiFi network.
Here's the result of ipconfig command:
Ethernet adapter Ethernet:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : myhostname.net
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . : myhostname.guest
Link-local IPv6 Address . . . . . : fe80::8136:d112:d190:5fd8%17
IPv4 Address. . . . . . . . . . . : 10.168.4.171
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.168.4.1
Ethernet adapter Ethernet 6:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Local Area Connection* 1:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter Ethernet 3:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter Bluetooth Network Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter Local Area Connection* 11:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::1c40:2198:f557:fb54%11
Default Gateway . . . . . . . . . :
Here's the result of running npm start:
(...) Or enter this address in the Expo app's search bar:
exp://10.168.4.171:19000
Unfortunately, I can't access my app from Expo app installed in my smartphone.
I already tried:
And I am still unable to run my app via Expo app. However, installing Expo app on my PC solved the problem - it shows different QR code than the one on console and I can run my react native app, but I would like to run my app from Expo app from my smartphone.
EDIT: I tried on another PC with Win10. Installed create-react-native-app, ran it and it worked perfectly through WiFi.
Source: https://github.com/react-community/create-react-native-app/issues/60#issuecomment-317104728 I read Himujjal's solution and it works with me: The following steps will definitely help. I had the same problem and was able to solve it in my Windows 10 OS. I had Virtual Box installed on my computer and I was not able to run CRNA in my android expo client. So,
Try restarting your app on Expo. It must work now!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With