Avoid using hard coded values for ports.

Get an available port