The replication interface must provide the host:port pair for itself so that simultaneous index builds can uniquely identify itself to the primary when conveying commit readiness.
Replication has the information in either the ReplicationCoodinator or TopologyCoordinator. It just needs to be surfaced.