# Mongodb4 connection issue

**URL:** <https://discourse.nodered.org/t/mongodb4-connection-issue/82966>\
**Category:** General\
**Created:** [17 November 2023 13:16 UTC](https://discourse.nodered.org/t/mongodb4-connection-issue/82966 "2023-11-17T13:16:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![googizzy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/googizzy/32/77939_2.png) [@googizzy](https://discourse.nodered.org/u/googizzy)\
**Post date:** [17 November 2023 13:16 UTC](https://discourse.nodered.org/t/mongodb4-connection-issue/82966/1 "2023-11-17T13:16:59Z")

</div>

I have set up my mongodb4 connection as follows:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/f/4f95409c8e43fa26612fabec6b2d33a87d2004ff.png)

As the documentation says:

- **URI** - Define your own connection string in URI format. [Read the docs: Connection String in URI Format](https://docs.mongodb.com/manual/reference/connection-string/)

Which I got from my Mongo Hosted instance at [cloud.mongodb.com](http://cloud.mongodb.com)

 ![Screenshot 2023-11-17 at 13.13.16](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/e/ee6b1501f938f29400f9d7e516cc4c3dc84bbf45.png)

SOLVED: I had the tailscale IP on the mongo allow list rather than the external IP of the sever.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 January 2024 13:17 UTC](https://discourse.nodered.org/t/mongodb4-connection-issue/82966/2 "2024-01-16T13:17:58Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
