Using 0 for system allocated port means forcing a ServerSocket call