Debug code for choosePorts to document collisions