Unable to sync using mongomirror between self managed clusters

Hi,
I was trying to sync data using mongo mirror between 2 self-managed clusters, basically the source is at 4.0 and destination is at 5.0. The mongomirror throws NoReplicaSet primary error.
How can i fix it? Also is mongomirror only used for Atlas?