Unable to connect new primary after stepdown of old primary in ReplicaSET

Hi Team,

We have setup a replicaset mongodb in linux. 3 node(1primary and 2 secondary).
I am able to connect to primary via compass but after stepdown of primary, 2node has been new primary. But unable to connect via compass. From system i have network access to all 3 nodes.
I am stuck in this. Please advise me.


How is your connection string looking?