Windows에서 nodejs에 대한 기본 웹 서버 hello world app을 가지고 있으며 localhost에서 작동합니다. 하지만 인터넷에서 테스트 할 때 연결할 수 없습니다. 내 넷기어 라우터에서 포트 포워딩을 설정했습니다. 내 nodejs 서버를 외부 세계에 보이게하려면 여기 단계가 빠졌습니까?Node.JS 인터넷에서 작동하지 않습니다
감사합니다.
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/');
사용중인 코드를 표시하면 도움이됩니다. – AppleGrew
nodejs 웹 사이트의 hello world 웹 서버에 불과합니다. – BRampersad