I build my react native app in this way :
1.npm install expo-cli --global
.
2.expo init my-new-project
.
3.cd my-new-project and expo start --lan
.
4. install expo on my ios device
.
5. open Expo then click the “Scan QR Code” and Scan the QR code in our terminal.
but I get following error :
I am connected to the same wifi on both devices and my IP is the same. And I turned off my windows firewall.
Do you know why this happens? I once saw the output on my phone but after that this error occurs every time.
Your firewall is most likely the problem. It may be blocking your phone's connection to your computer.
On Windows: Settings > Network and Internet > [Ethernet || WiFi] > Network > Network Profile [Private] > Configure Firewall and Security Settings > (Settings is trying to open Windows Security) [Yes] > Private Network > Microsoft Defender Firewall [Off]
Now expo should work through LAN.
Alternatively: On the expo developer tools, switch to tunnel.
I had the same problem, entered to Settings, Network, WI-Fi, show available Networks, Properties on your internet connection, and click on Private. Then it worked, I hope it serves to you too.
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