我做了所有需要的包和node.js的安装到专用机的Windows 2008服务器。
var http = require('http');
var port = 1337;
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(port, '127.0.0.1');
console.log('Server running at http://127.0.0.1:' + port );
所以,当我打电话http://local.host:1337/ ,我得到的“Hello World”但是,如果试图从另一个调用本机服务: HTTP://my.domain.ip.address:1337 /哎呀,我可以“看不到什么。 我已经转关防火墙在所有
谢谢,所有建议