I wanted node js to listen to a port, so i used the below code
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World\n');
}).listen(3000, "127.0.0.1");
Regardless of what i use in .listen
its listening to port number 1337