made server.js configure based on ports.js
fixed server.js port config