# No longer able to connect to MongoDB since 23 Feb 2023

**URL:** <https://community.fly.io/t/no-longer-able-to-connect-to-mongodb-since-23-feb-2023/11072>\
**Category:** Questions / Help\
**Created:** [February 28, 2023, 4:27am UTC](https://community.fly.io/t/no-longer-able-to-connect-to-mongodb-since-23-feb-2023/11072 "2023-02-28T04:27:59Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![yup](https://avatars.discourse-cdn.com/v4/letter/y/e8c25b/32.png) [@yup](https://community.fly.io/u/yup)\
**Post date:** [April 15, 2025, 5:41am UTC](https://community.fly.io/t/no-longer-able-to-connect-to-mongodb-since-23-feb-2023/11072/10 "2025-04-15T05:41:16Z")

</div>

In case this helps anyone. The issue caused me a lot of pain:

- [Assign Static Egress IP](https://fly.io/docs/flyctl/machine-egress-ip-allocate/)
- [Static Egress IP Management](https://fly.io/docs/flyctl/machine-egress-ip/)

> [@Static egress IPs for machines](https://community.fly.io/t/static-egress-ips-for-machines/22004):
>
> You can now assign static egress IPs to your machines.! Although most apps don’t need it, it is useful when using services like MongoDB atlas that require allowlisting a range of IPs. You can allocate static egress IPs to your machine by running fly machine egress-ip allocate \<machine ID\>. These IPs survive machine migration and are not shared between machines. Static egress IPs for machines will cost $0.005 per hour.

---

_[View the full topic](https://community.fly.io/t/no-longer-able-to-connect-to-mongodb-since-23-feb-2023/11072)._
