By Matt Zur
I have a MongoDB instance I’ve setup, and under Trusted Sources, all works great. You can add an IP to connect, which may be your local machine, or the web server you’re using.
Since we’re in development, and don’t have a deployed application, we tend to simply add our IP address to the trusted source so our local application connects.
The Problem is however when we’re running a VPN on our local machine, and checking the current ip… it has one address… but then within DigitalOcean, (adding an IP to trusted source) it has a completely different IP. It will say ‘your computers IP’.
Is there a way to get this to work, or is it impossible via a VPN to add an IP to a trusted source that would connect?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
It would really depend on how your VPN is configured, for example, your VPN might be filtering only some websites and not all of the traffic would be going over the VPN.
What I could suggest is getting in touch with your VPN provider and asking them for the IP range that you get assigned, and then using that IP range in your trusted sources list.
Let me know how it goes!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.