Report this

What is the reason for this report?

Can't access other servers over private network

Posted on July 6, 2014

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!

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.

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

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.