Question

How to access private network and install things on app server

Posted June 2, 2015 3.5k views
Node.js DigitalOcean Networking Deployment

Following this tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04. When I try to ssh as root@PRIVATE-NETWORK-IP it just hangs and never connects, is that the right idea? My app server will be accessed by ssh root@PRIVATE-NETWORK-IP and my webserver is ssh root@PUBLIC-IP?

I ended up ssh into my PUBLIC-SERVER-IP then created a program with the private id 127.0.0.1 instead of the private network.

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.

2 answers

Use the Public IP to connect.

The Private IP works only internal from DO Server to DO Server at same Location e.g for a cluster.

You can’t reach the Private IP from the Internet.

Both the public IP address and the private IP address point to the same droplet/server. As @eldin said, the private network is meant for communication between droplets in the same datacenter, so to SSH into your droplet from your local workstation, you will need to connect to the public IP address.

Submit an Answer