cancel
Showing results for 
Search instead for 
Did you mean: 

Java application : Mongo connectivity timed exception hosted in SAP cloud for free trial

former_member709955
Discoverer
0 Kudos

We hosted java application with mongo atlas as a database. Getting mongo exception connection timed out in the logs and working when hosted in a VM. We tried to whitelist the SAP IP ranges in mongo atlas, even though facing the same issue. Any solutions to solve this?

sveabecker
Community Advocate
Community Advocate
0 Kudos

Welcome and Thank you for visiting SAP Community to get answers to your questions. Please add more details to your question, e.g. you can also add a screenshot. With that, you can reach a broader range of experts to get your question answered. I also recommend to do this tutorial https://developers.sap.com/tutorials/community-qa.html

The more details you provide, the more likely it is that members will be able to assist you.

Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS. By personalizing your profile with a photo of you, you encourage readers to respond.

Regards, Svea

SAP Community moderator

cosmo83
Active Participant
0 Kudos

If you are hotsing it in EU , these are the ip addresses you should maintain in the Network Access in Atlas.

52.59.128.222/32

52.28.241.88/32

18.184.81.94/32

How are you maintaining the connection in your java app . Is it hardcoded or are you using cfenv ?

former_member709955
Discoverer
0 Kudos

Hello

We are using trail account with below details:

Provider: AWS , Region : US East (VA)

Java app hosting process - its hosted in SAP cloud platform cockpit cloud foundry : Java app will connect to mongo atlas with help of its connection string and mongo atlas only accept connections if and only if that particular hosted machine IP is whitelisted.

Problem:

In mongo atlas, we added all the SAP IP ranges including AWS region. Even though it couldn't able to communicate with mongo Atlas.
And if we make mongo atlas to listen from all IP's (from anywhere), java app is successfully connecting to mongo atlas.

So, SAP whitelist IP's are not working.

Any solution to overcome this........

Accepted Solutions (0)

Answers (0)