Due to how Square works in a way that has a dynamic IP, by an exclusive technology, it is impossible to provide you with an IP, since every restart in the application, you receive a unique IP.
Square Cloud stands out with its dynamic IP allocation, assigning a unique address with each application restart. Unlike static IPs, this dynamic approach enhances security by constantly changing the network footprint, making it more resilient against potential threats.
To fix this error, you need to whitelist the IP address, according to the mongodb documentation, you need to whitelist 0.0.0.0/0 IP address.
Congratulations! You have successfully whitelisted the IP address 0.0.0.0/0 for your MongoDB Atlas database. Now you can connect your database to your app hosted on Square Cloud.If you continue facing technical difficulties, our specialized support team is available to assist you. Contact us and we'll be happy to help you resolve any issue.