find the available port automatically