take port from endpoint configuration