Communicating between two VPC in the same region

Posted May 23, 2020 852 views
Ubuntu 18.04

Hi, I am trying out DigitalOcean and I wanted to establish communication between two droplets placed in two separate VPC. These VPCs are in the same region.
I wanted to setup application server droplets in the 1st VPC and Database droplets in the second.
I wanted to isolate the VPC in which DBs are placed from access using public IP. Only app servers in the 1st VPC should be allowed to communicate with the database using the private IP addresses.

I tried pinging droplet in DB server VCP from my App server VPC but ping request does not give any output.

Any help will be appreciated.

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.

3 answers

I have the same issue if you find a resolution …

Hi @skcoco,

I don’t believe this is actually possible. The whole idea of VPC is to be private. VPCs are completely isolated from both other customers and other VPCs on your own account.

Here you can further read on the product itself

VPC networks are private networks that contain collections of resources that are isolated from the public internet and other VPC networks within your account, project or between teams in the same datacenter region. This means your resources, such as Droplets and databases, can reside in a network that is only accessible to other resources in the same network.


I have the same issue..
One method you could do it is with some clever routing.

For example,
spin up two VM’s.. One in each VPC.

Setup a VPN between both VM’s across the internet on their pub addresses.

Then route to each others backend network via that VPN. Essentially creating a gateway on both networks via an ipsec vpn across the internet.

Not exactly graceful, but it would work.

Submit an Answer