title: node js listen EADDRINUSE error for simple httpserver
body: <p>I have simple node js http server.</p>
  
  <pre><code>var http = require("http");
  
  http.createServer(function(request, response) {
    response.writeHead(200, {"Content-Type": "text/plain"});
    response.write("Hello World");
    response.end();
  }).listen(8888);
  </code></pre>
  
  <p>If I run</p>
  
  <pre><code>node basicserver.js 
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>node.js:201
          throw e; // process.nextTick error, or 'error' event on first tick
                ^
  Error: listen EADDRINUSE
      at errnoException (net.js:642:11)
      at Array.0 (net.js:743:26)
      at EventEmitter._tickCallback (node.js:192:40)
  </code></pre>
  
  <p>I have seen <a href="https://stackoverflow.com/questions/8673775/process-nexttick-error-in-node-js">this</a> post, but that post seems to be specific to TCP server and not http server. Could anyone please help.</p>