从我的笔记本电脑托管Node.js [英] nodejs hosting from my laptop

查看:50
本文介绍了从我的笔记本电脑托管Node.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用express的nodejs的网站.该网站在我的本地主机上运行良好.我找不到从笔记本电脑托管网站的方法,即允许外部用户远程连接到该网站.我想检查一下是否可行.我正在使用Windows 7.

I have a website that uses nodejs with express. The website is working fine on my localhost. I am not able to find a way to host the website from my laptop i.e. allowing external users to connect to it remotely. I wanted to check if this is possible. I am using windows 7.

我以前用php做同样的工作,但是我用过wamp服务器.nodejs有类似的方法吗?

I used to do the same job with php however, I used wamp server. Is there a similar way for nodejs?

谢谢

推荐答案

我以前用php做同样的工作,但是我用过wamp服务器.nodejs有类似的方法吗?

I used to do the same job with php however, I used wamp server. Is there a similar way for nodejs?

完全相同.假设Node.js在正确的接口上侦听,则没有理由无法将端口从路由器转发到笔记本电脑上的服务器.

It's identical. Assuming Node.js is listening on the correct interfaces, there is no reason why you can't forward a port in from your router to your server on your laptop.

这篇关于从我的笔记本电脑托管Node.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆