Order discoveryPort to be assigned before the ConnectionManager is initialized in the constructors.