简体   繁体   English

无法访问本地网络上的 ReactJs/Nextjs 应用程序 | 连接已超时 | Reactjs 本地网络上的应用程序

[英]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.

相关问题 如何在本地网络中部署在 ReactJS/NodeJS/Express/MongoDB 中创建的 Web 应用程序? - How to deploy web-app created in ReactJS/NodeJS/Express/MongoDB in a local network? 如何在本地网络中使用节点后端访问我的 React 应用程序? - How to access my React app with node backend in local network? Nestjs 无法访问在 windows 10 上的本地网络上运行的应用程序 - nestjs not able access app running on local network on windows 10 Express 应用程序无法在没有互联网的本地网络上运行 - Express app not working on local network without internet 带Reactjs和NodeJS而不带NextJS的Shopify应用程序? - Shopify app with reactjs and nodejs without nextjs? 如何构建Nodejs应用程序并在没有Nodemon的本地LAN网络上部署 - How do I build a Nodejs App and deploy on a local LAN network with out Nodemon 如何从本地网络中的另一台电脑访问我的 React 应用程序? - How can I access my react app from another pc in local network? 本地网络上的其他人如何在我的机器上运行时访问我的 NodeJS 应用程序? - How could others, on a local network, access my NodeJS app while it's running on my machine? 使本地网络之外的计算机可以使用 create-react-app - Make create-react-app available to computers outside of local network 在本地网络上的差异计算机上访问客户端和服务器应用 - Accessing client and server app on diff machine on local network
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM