Report this

What is the reason for this report?

How to connect to managed database over private network?

Posted on March 4, 2020

I have set up a managed database in SFO2 and I have a droplet in SFO1. I added the droplet as well as its public and private IP addresses as allowed sources. Connecting via the public network works great. When I try to connect via the private network, it just hangs, as you would expect if you were being blocked by a firewall.

I’ve even tried: nc -zv ${privatehostname } ${port} and its still not connecting.

Is there something I’m missing here?



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

The private networks for SFO1 and SFO2 are entirely separate. You would only be able to communicate with your managed database over the private network from a Droplet in SFO2.

With that in mind, you could either create new Droplets in SFO2, or communicate over the public network.

  • Eris

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.