com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by java.net.ConnectException: Connection refused

Mongodb process running at altas AWS

java.net.ConnectException: Connection refused

How can i solve the error