Properly set app.port after server was started.