title: node.js server running but not loading
body: <p>I've just installed node.js on my computer running Win7(64bit).</p>
  
  <p>The problem is that when I run a simple hello-world application it is running (as confirmed by  <code>console.log()</code> and me pushing the code to OpenShift where it works just fine) but when I try to load the page in <code>localhost:1337</code> it just keeps on loading (eventually times out).</p>
  
  <p>I've no idea what to check, since firewall is <em>not</em> blocking node and I'm not running anything that would block the port.</p>
  
  <p>Here's the server code.</p>
  
  <pre><code>#!/bin/env node
  // Include http module.
  var http = require("http");
  //Get the environment variables we need if on OpenShift
  var ipaddr = process.env.OPENSHIFT_NODEJS_IP || "127.0.0.1";
  var port = process.env.OPENSHIFT_NODEJS_PORT || 1337;
  
  http.createServer(function (request, response) {
     request.on("end", function () {
        response.writeHead(200, {
           'Content-Type': 'text/plain'
        });
        response.end('Hello HTTP!');
     });
  }).listen(port, ipaddr);
  
  console.log('It works');
  console.log('IP : ' + ipaddr + '\nPort : ' + port);
  </code></pre>
  
  <p>Any help is appreciated, thank you.</p>
  
  <p><em>edit</em></p>
  
  <p>Here's a screenshot of commandline output.
  <a href="http://i.stack.imgur.com/GGaLD.png" rel="nofollow">http://i.stack.imgur.com/GGaLD.png</a></p>