title: NodeJS server not accessible from outside
body: <p>I deployed a nodejs server in Rackspace and can be accessed internally, like using:</p>
  
  <p><code>curl http://127.0.0.1:8080</code></p>
  
  <p>However, it can't be accessed from the outside (the internet) even if I do this: </p>
  
  <pre><code>iptables -A OUTPUT -p tcp  --dport 8080 -j ACCEPT
  iptables -A INPUT -p tcp  --dport 8080 -j ACCEPT
  </code></pre>
  
  <p>Here is what my code looks like:</p>
  
  <pre><code>var http = require('http');
  http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('Simple server\n');
  }).listen(8080, "0.0.0.0");
  console.log('Server running at http://0.0.0.0:8080/');
  </code></pre>
  
  <p>Any ideas?</p>