If the following connection string does not work please provide the error you are getting.
mongodb://mongo1,mongo2,mongo3/?replicaSet=myReplicaSet
What base OS are you using?