Yeah, the cluster thing seems entirely broken. Note that this is only a "statistical" solution as well; there's nothing to guarantee that the random port you've chosen is actually free to use (as opposed to the normal port 0, which always selects a free port).