title: Node.js is app is not listening on specified port
body: <p>I am specify port 30000, but the app ends up listening on a different port.</p>
  
  <p>This is the code I am using:</p>
  
  <pre><code>var express = require('express');
  var bodyParser = require('body-parser');
  var path = require('path');
  
  var app = express();
  
  app.get('/', function(req, res) {
      res.send('Hello World');
  });
  
  app.listen(30000, function() {
      console.log('Server started on port %d', app.listen().address().port);
  });
  </code></pre>
  
  <p>The port the app is listening to gets set to a different value when it runs. If I use the value that it logs to the console in the browser, it works properly.</p>
  
  <p>Thanks much!</p>