By taylor280302
I’ve turned on private networking on two droplets, but I can’t even get them to ping each other over the private network. Any help?
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 @kamaln7, I have the same problem. I did all the steps you mentioned and still no luck connecting to mysql. But running nc -zv database-droplet-ip 3306 succeeded w/ my ufw on, the database ip I used is the private network address. When I try to turn off my ufw I have no trouble connecting to mysql, also when I allow my public ip on ufw it connects perfectly.
Do you have a firewall installed that might be blocking ICMP packets? I believe UFW does that by default. If you’re using UFW, try disabling it and trying to run ping again.
Also, what’s the output of the following command?
sudo sysctl net.ipv4.icmp_echo_ignore_all
nc -zv database-droplet-ip 3306 timed out (I replaced database-droplet-ip with the private network ip of the database droplet).
sudo netstat -plutn | grep 3306 on the database droplet returned:
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 8312/mysqld
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.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.