How to Configure External Database Access
- Find the Public IPv4 Address of the machine hosting your Discord bot.
- Log into your database provider’s dashboard (e.g., MongoDB Atlas, AWS RDS).
- Navigate to Network Access or Security Groups.
- Add an inbound rule allowing connections from your bot’s specific IP address.
If you are hosting the bot on a home network where the IP changes frequently, you may need to allow connections from anywhere (
0.0.0.0/0), though this requires strong database passwords for security. We recommend using the maximum password length your database provider allows, and saving this to a password manager like Bitwarden.