Use a Random Unassigned HTTP Port To scan for a free port (using OS natives to prevent clashes) use server.port=0. Change the HTTP Port Discover the HTTP Port at Runtime