try using app.get('port')