Have a port number counter per address rather than a global counter
Revert "Store port in config file too"

This reverts commit ceef1cbed973934dd6057685536aa04befccb785.