DEV Community

Cover image for How to connect Spring Boot to MongoDB on Remote Server
codegirl
codegirl

Posted on • Edited on

1

How to connect Spring Boot to MongoDB on Remote Server

Hey there, fellow devs!❤

In this blog, you will only see my love for databases and servers, all backend cravings😌

So, for a heavy introduction, I am imagining that you have set up a Spring Boot application with MongoDB. When using MongoDB on localhost, everything functions perfectly. The issue is that you get "Exception opening socket" and "connect timed out" when you attempt to connect to MongoDB on a remote server.

Right? 😁

Of course! Because you might have didn't follow the below-mentioned steps🧐

Please read my full blog here:
https://www.codegirl0101.dev/2024/04/exception-opening-socket-and-connect.html?m=1

Top comments (1)

Collapse
 
louaiboumediene profile image
Louai Boumediene

Ooooh very interresting 🔥

Jetbrains image

Build Secure, Ship Fast

Discover best practices to secure CI/CD without slowing down your pipeline.

Read more

👋 Kindness is contagious

Dive into this informative piece, backed by our vibrant DEV Community

Whether you’re a novice or a pro, your perspective enriches our collective insight.

A simple “thank you” can lift someone’s spirits—share your gratitude in the comments!

On DEV, the power of shared knowledge paves a smoother path and tightens our community ties. Found value here? A quick thanks to the author makes a big impact.

Okay