How to create a URI for a remote replica server

I have created a 3-node replica cluster in a single server using localhost as bindIp. Now I need to change access to a hostname where I can access the replica cluster from a uri.

How can I change the bindIp to access from any Ip under a given hostname?
How can I obtain a URI string for this cluster to access through MongoClient?

You either bind to all or to an accessible IP address of the machines.

See for information on how you create your URI based on the hosts of your cluster.