[英]Expo- Could not connect to the server
You tried to connect to the wrong IP.您试图连接到错误的 IP。 the 127.0.0.1 is a localhost IP.
127.0.0.1 是本地主机 IP。 You have to change to the IP where your Metro Builder Server runs on.
您必须更改为运行 Metro Builder Server 的 IP。
Maybe this Thread helps you to change to the correct IP: React Native Expo change default LAN IP也许这个线程可以帮助您更改为正确的 IP: React Native Expo change default LAN IP
That's it!就是这样!
IMPORTANT: remember to close and re-open the elevated PowerShell command prompt, since newly added Environment Variables wont' be available on the existing prompts.重要提示:请记住关闭并重新打开提升的 PowerShell 命令提示符,因为新添加的环境变量在现有提示中不可用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.