Can't deploy my app with heroku

I’ve been trying to deploy my nod js website with Heroku , I used mongo DB for my database, actually, mongo DB is blocked from my country so i open it using a VPN which changes my IP , I know specifically the problem, before deploying my app everything is working fine, but when I connect my project with Heroku and try to deploy it,i get errors on heruko logs which tell that: cannot connect to mongo db and common reason is that you don’t have a whitelisted ip, i think heruko uses the current ip of mine. i really need help, I’ve been stuck there a long time and I started to cry and feel like I’m wasting my time :’( :sob: :sob: :sob: :sob: :sob:

Hello! Welcome to the community :partying_face:! We hope you learn a lot :grin:!

Heroku doesn’t use the IP of you network, so that’s not the problem.

Instead, you need to allow the Heroku IP through the firewall on (or wherever your mongodb instance is running :slightly_smiling_face:).

1 Like

thank you so much :smiling_face_with_three_hearts:

1 Like