node.js on windows not serving requests to external IP


I deployed node.js to Amazon EC2 Windows instance. Here is the js code which I run:

require('http').createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');

It works perfectly when I am accessing http://localhost But it doesn't work when I'm trying to access the server through external IP: http://[external IP]

when I run "netstat -ano" I can see this line:

if I run IIS, then it adds two lines

What does [::] mean? And why it's not added when I run node.js? I think, that is why node.js isn't serving requests to external IP. How can I make node.js work on Windows?

Problem courtesy of: Andrei Sedoi


(re-posting comment as answer)

You might have to reconfigure your firewall, it is probably configured too strict.

Solution courtesy of: thejh


There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.