require('colors');
var express = require('express');
var bodyParser = require('body-parser');
var path = require('path');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);

var imgPath = 'uploads/image';

app.use(bodyParser({ limit: '5mb'}));

io.on('connection', function(socket){
  console.log('User connected');
  socket.emit('refresh');
});

io.of('/android').on('connection', function(socket){
  console.log('Android connected');
});

var port = Number(3000);
http.listen(port, function() {
  console.log(('Listening on ' + port).green);
});

app.get('/client', function(req, res) {
  res.sendfile(path.resolve('src/index.html'));
});

app.post('/upload', function(req, res) {
  res.send('OK!');
  io.emit('refresh', { image: req.body.image });
});

app.get('/image', function(req, res){
  res.sendfile(path.resolve(imgPath));
});
@@ -503,9 +503,29 @@
 ber(
-3
+process.env.PORT %7C%7C 5
 000)

Revert port.