By Arian K
I’ve recently set up a new droplet in NYC3, and I’m trying to have a Django setup on my first Droplet with PostgreSQL on another one on NYC3 that I’ve had set up for a while, and linking them with private networking. I haven’t been met with much success, though. I have set up the networking interface to the point where it shows up in ifconfig on the first droplet, but the new droplet had private networking on when I created it, and initially, trying to do a connection of any kind (I have attempted ssh, ping and Django) has not worked at all, it would act like the other machine was firewalled out and would time out. On both of them, I can connect to themselves with the private IP, I just can’t get them both to connect with the private IP. I can even connect to them with the public IP and that minimally works but I want to get private networking set up.
I’m not sure if this problem has to do with firewalls. I do have Cloud Firewalls enabled on my first droplet, but I don’t on the second one, but nothing changes anything as far as I’ve tried. I have not attempted to change any iptables settings, but I have also tried starting up another droplet and having it connect to the new one and vice versa, and it has not worked, so I’m puzzled to why it’s not working because I have had this issue for more than a day already.
Anything would help to get this working, thanks.
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!
In the past you had to select private networking during droplet creation in order for them to be able to communicate with each other.
If you created one without private networking and just used ifconfig to add a private IP address, it wouldn’t be routed to your other droplets.
We have since made massive changes to the underlying network infrastructure to all droplets and now every customer gets their own VPC, virtual private cloud.
As long as you add droplets to the same VPC they will all be able to communicate with each other.
This comment has been deleted
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.