As you are asking about port 22001 I was assuming you meant the listen address for incoming sync connections, which is
<listenAddress> in the config xml. That should be clear from the docs, as in the options sections the listenAddress explanation links to the more detailed explanation of listen addresses.
The addresses for the gui and devices (
<device>) have nothing to do with this. What @Alex mentioned is
dynamic for the device address, which then uses discovery. You can’t use discovery for your own listen address, as you need to inform discovery about your own listen address (not the other way round).