It has been requested that the wallet find an open port if the one it's trying to connect to the core on is in use. This would require both the core and the interface checking to see if the port they're trying to use to communicate is in use, finding an open port, and negotiating that open port with each other (core and interface).