简体   繁体   English

node.js在静态IP上部署?

[英]node.js deploying on a static IP?

I attended a workshop for node.js application development and started exploring it. 我参加了node.js应用程序开发的研讨会,并开始探索它。 But what I had to do was start the server only on my local host and not on my static IP ( IP of my router which is connected to internet ). 但我要做的只是在本地主机上启动服务器而不是我的静态IP(连接到互联网的路由器的IP)。 Is it possible to make my static IP a server and then access it from other places than local host only 是否可以将我的静态IP设置为服务器,然后从本地主机以外的其他位置访问它

Open a forwarded port through your router to your node.js service. 通过路由器打开转发端口到node.js服务。 Make sure your server's local firewall (if any) allows incoming requests on the node.js server's listening port. 确保服务器的本地防火墙(如果有)允许node.js服务器的侦听端口上的传入请求。 How to do all this is router-specific and os-specific, so I can't offer anything more concrete. 如何做到这一切是特定于路由器和特定于操作系统的,所以我不能提供更具体的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM