title: Node.js - Basic example not working
body: <p>I have been trying to figure out why i cant get even the most basic Node.js application to run, all day. I have installed Node on my Media Temple (dv) server in the root using PuTTy NOT on my local machine.</p>
  
  <p>When i do 'node --version' it shows me the version, which tells me that Node is correctly installed. However when i attempt to do the basic 'HTTP' example it doesnt work when i go to <a href="http://mysite.com:1337" rel="nofollow">http://mysite.com:1337</a>, instead the connection just times out.</p>
  
  <p>The JS is below:</p>
  
  <pre><code>var http = require('http');
  
  http.createServer(function (req, res) {
      res.writeHead(200, {'Content-Type': 'text/plain'});
      res.end('Hello World\n');
  }).listen(1337, "mysite.com");
  
  console.log('Server running at http://mysite.com:1337/');
  </code></pre>
  
  <p>Node.js really interests me so would be good if i can understand why it isnt working.</p>
  
  <p>Thanks in advance.</p>