How to Create Master & Slave Setup on Mongodb by Two Different Servers?

You do because you are not sharing what we asked. We asked a few days ago the following:

We do not really want to know which guide you followed. We want to see the exact steps that you took. This is the only way we can see which steps you missed or did wrong.

Any reasons why you are not using Atlas?