Dynamically discover the first available port instead of hard-coding one Reviewed-by: sla, chegar, dfuchs
Reviewed-by: darcy, weijun