diff --git a/app.js b/app.js
index e666b6b5d6800e734a2db729a0dc9791df439688..783a4b04e008334e225bdadbf57018f051e3d444 100644
--- a/app.js
+++ b/app.js
@@ -1,4 +1,3 @@
-
 var config = require('./config.json');
 
 var pathPhotos = config.pathPhotos;
diff --git a/bin/www b/bin/www
index a4c904c848cef1a4b7b02dbabfaebe7836aceb5c..8a267d266f2812c7d8c92a2c494d855811714dae 100644
--- a/bin/www
+++ b/bin/www
@@ -1,9 +1,12 @@
 #!/usr/bin/env node
+
+var config = require('../config.json');
+
 var debug = require('debug')('foo');
 var app = require('../app');
 
-app.set('port', process.env.PORT || 3000);
+app.set('port', config.httpPort || 3000);
 
 var server = app.listen(app.get('port'), function() {
-  debug('Express server listening on port ' + server.address().port);
+  console.log("Express server listening on port " + app.get('port'));
 });
diff --git a/config.json-dist b/config.json-dist
index 54528b926e7b051d00ef422c292f4be75def5164..a90c72e018efe6bc940f1ba11a74650223a94cbe 100644
--- a/config.json-dist
+++ b/config.json-dist
@@ -3,4 +3,5 @@
   "previewWidth"	: 1920,
   "previewHeight"	: 1080,
   "broadcastAddr"	: "192.168.0.255"
+  "httpPort"      : 3080
 }