Could not connect to MongoDB on the provided host and port

I am still getting “Could not connect to MongoDB on the provided host and port” tried all the steps in MongoDB Swift Driver 1.0.0-rc0 released - #2 by Jonny

Also [ follwing url works from my laptop. but error when connecting from compass.

http://cluster0-shard-00-00-jxeqq.mongodb.net:27017/