[英]Unable to access ReactJs/Nextjs app on local network | The Connection has timed out | Reactjs App on local network
When you run the ReactJs, NextJs and NodeJs application on your linux/ubuntu device but you want to access it on the local network and unable to access it.当您在 linux/ubuntu 设备上运行 ReactJs、NextJs 和 NodeJs 应用程序但您想在本地网络上访问它并且无法访问它时。
Basically your firewall is blocking you to access your application on the local network.基本上,您的防火墙阻止您访问本地网络上的应用程序。
So Solution to this problem is:所以这个问题的解决方法是:
Disable Firewall with this command:使用以下命令禁用防火墙:
sudo ufw disable
After running this command you will be able to access it on local network, Go Check it!运行此命令后,您将能够在本地网络上访问它,Go 检查它!
To enable the Firewall again type this command要再次启用防火墙,请键入此命令
sudo ufw enable
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.