var express = require('express');
var app = express();

app.get('/', function (req, res) {
  res.sendFile(__dirname + '/bin/index.html');
});

app.use(express.static('bin'));

var server = app.listen(3000, function () {

  var host = server.address().address;
  var port = server.address().port;

  console.log('Example app listening at http://%s:%s', host, port);

});
var express = require('express');
var app = express();

app.set('port', (process.env.PORT || 3000));

app.get('/', function (req, res) {
  res.sendFile(__dirname + '/bin/index.html');
});

app.use(express.static('bin'));

var server = app.listen(app.get('port'), function () {
  console.log("Node app is running on port:" + app.get('port'));
});
Update port on app.js