English 中文(简体)
如何在公共静态 IP 上使用自己的 Pc 托管我的节点服务器?
原标题:How to host my node server using own pc over public static ip?
I hava a broadband internet connection with public static ip address which is connected to my wifi router. Multiple devices, specially my pc is connected to that wifi router. Now I want to run a node application in 3000 port in my pc and expose that for public use. For example my public ip is 103.80.x.y which is connected to my wifi router and my pc is connected to wifi router so got a private ip 192.168.a.b from router.I can access the node application from other device connected to same router using 192.168.a.b:3000. But now I want to access my node application by visiting 103.80.x.y:3000 from anywhere outside by connecting to internet. How can setup this system from my windows pc?
问题回答
Set up port forwarding on your router. This tells the router to direct incoming traffic on a specific port to your computer s local IP address. Just google your router s name + port forwarding and you ll find a tutorial. Follow that tutorial and fill in port 3000 when you re asked what port you want to forward. Also you should adjust your computer s firewall to allow incoming connections on the port your app is using. The basic idea is this: When someone tries to access your public IP on the specified port, your router will receive that request. Thanks to port forwarding, it ll know to send that traffic to your computer s local IP. Your computer s firewall will allow this traffic, and your app will receive and respond to the request.




相关问题
Server Error in /domain/website Application

I am getting following error while i deployed the website.. Server Error in /domain/website Application. Runtime Error Description: An application error occurred on the server. The current custom ...

Can t get anonymous access to website

I have already asked this question on ServerFault however I got very minimal replies....one to be exact. I need this issue resolved ASAP hence why I am asking on here aswell. I have a server running ...

Webserver failover

I will be running a dynamic web site and if the server ever is to stop responding, I d like to failover to a static website that displays a "We are down for maintenance" page. I have been reading and ...

What does it mean "to write a web service"?

I just asked a question about whether it was possible to write a web-page-checking code and run it from free web server, and one supporter answered and said that it was possible only if I run "a web ...

热门标签