Hi @Mydesk_Mydesk,
Welcome to the community!
My connection string is the same for both cases so that is not the point of failure. I believe there is some issue in tomcat which is blocking this webapp to connect to mongodb atlas.
As it’s working for the client on ip1, your hypothesis that the issue existing on the centos7 client is probable. Have you performed any network troubleshooting tests to try rule out any network issues? If not, you can try the following from the centos7 client:
ping <hostname>
telnet <hostname> 27017
Atlas clusters operate on port 27017 . You must be able to reach this port to connect to your clusters.
curl http://portquiz.net:27017
The output from the above command should provide a response containing the outgoing IP that is attempting to connect to the Atlas cluster. This must be on your Network Access list.
To obtain the hostname, you can click on the “Metrics” button in the Clusters tab from the Atlas UI. From here, you should see the hostnames of all nodes for a particular cluster.
Example:
Note: It would be best to perform the commands against the PRIMARY member hostname
You may also want to check out the Troubleshoot Connection Issues documentation.
Hopefully this helps.
Kind Regards,
Jason
