Tag: 向前兼容性

Node.JS不在互联网上工作

我有基本的networking服务器你好世界应用程序的nodejs在Windows上,它在本地主机上工作。 但是,当我从互联网上testing它不能连接。 我在我的netgear路由器中设置了端口转发。 我错过了一个步骤,使我的nodejs服务器可见的外部世界? 谢谢。 var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(1337, "127.0.0.1"); console.log('Server running at http://127.0.0.1:1337/');