Ask the system for a free port instead of trying and hoping (which sometimes lead to an exception)