get port from config