I have Apache also running on my machine, I have to run my application without adding a port number.
It works when I access it from http://localhost:2121 using the following:
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('hello');
}).listen(2121);
console.log('Server running');
How do I set it to use http://localhost (without the port number at the end.)