I cannot seem to connect via private ip address between 2 droplets

August 29, 2018 4.9k views
MySQL Ubuntu 16.04 Networking

I have 2 droplets, same data center behind the same fire wall. I have enabled private networking.
My end goal is to have a web application on droplet 1 and mysql database on droplet 2 and connect the two via private network IP over port 3306.
However, I cannot ping from droplet 1 to droplet 2 using the private ip address. I’m not sure what i’m doing wrong.
Ports 22,80,443 are open on the firewall.
Ubuntu 16.

Thank you!

3 Answers

Hey friend!

Most often when receiving reports of this, the case is that at least one droplet has had private networking enabled after it’s creation, but it has not been set up yet in the operating system. If that might be the case for you, try these instructions:

https://www.digitalocean.com/docs/networking/private-networking/how-to/enable/#manual

You will also want to make sure that the droplets are both on the same account, as private networking will be limited in communication to droplets on that same account.

Jarland

For future readers of this thread:
Also, if a DO Cloud-firewall has been setup for the target droplet, the firewall must be open to ICMP protocol for Ping to work.

Have another answer? Share your knowledge.