我有一个建立在expressjs和node.js之上的网站,它在我的localhost上正常运行.如何让它在我的IP(192.168.69.100)而不是localhost上运行,以便我的局域网上的其他用户可以访问它.
提前致谢.:)
我的代码片段
app.listen(port,function (err) {
if(err)
{
console.log(err);
}
console.log('Running on ' + port);
});
Run Code Online (Sandbox Code Playgroud)