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 🔥

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →