Skip to content
Create account
Menu
Language

Connect your servers with a private network

Your servers in the same data center reach each other at private addresses, off the public internet.

With private networking, each of your servers gets a private address (10.x.x.x) on a network of your own. Your servers in the same data center join the same network, so a website on one server can reach a database on another without the database being open to the internet.

Adding it

  • With a new server: tick Private networking under add-ons when you order. The server joins your network while it installs, and its private address is up when it is delivered.
  • To a server you have: on the service page, open the Your own domain tab and click Add private networking in the Private network card. You pay a new period of the server with the add-on now, and the days left on your current period are carried over. The server joins your network at once; restart it from the card to bring up its private address.

The price is the data center's own price for the add-on, per server, shown next to it. It stays with the server for as long as you keep the server.

Using it

  1. Add private networking to each server that should be on the network.
  2. The card shows each server's private address and your other servers in the network.
  3. Connect from one server to another at its private address, for example ssh root@10.0.0.2 or a database host of 10.0.0.2.

On Linux the private address is on the server's second network interface (eth1): ip addr show eth1 shows it. Make the programs that only your other servers should reach (a database, a cache) listen on the private address instead of every address.

Good to know

  • Only servers in the same data center can be on one network. Servers in different locations cannot be connected this way.
  • If the card says a server is in a different data center from your network, contact support and we will sort it out.
  • A server you delete leaves the network by itself.
  • On Windows, if the second network adapter has no address after a restart, contact support.