Create Zero Tier Account

Go to https://www.zerotier.com/, press sign up, and sign up for an account. I’m using my google account to create an account.

Once created, you will get the welcome screen. Press Create a Network

Create Network ZeroTier Screen

You will get a random network id and network name. I’m going to modify the name so click the name, and you get the settings page.

Make sure you access control as PRIVATE (that’s default).

Copy the network id from here for later.

Install the Zero Tier app on the server

Download and install the ZeroTier App on the server.

curl -s 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg' | gpg --import && \
if z=$(curl -s 'https://install.zerotier.com/' | gpg); then echo "$z" | sudo bash; fi

You will get your unique ZeroTier address for that server.

*** Waiting for identity generation...

*** Success! You are ZeroTier address [ randomstring ].

Now join the network, using the below command using the network id from the ZeroTier website copied earlier. You should get 200 join ok after the command

sudo zerotier-cli join longerrandomid

Log back into ZeroTier and click on your network name, scroll down to members, and tick auth if the address field matches your ZeroTier address randomstring from the install command.

Connecting your android phone to the network

Download the ZeroTier One app from the AppStore

Press the plus in the corner to join network.

Enter the network id from earlier and press Add network

Once done, enable the connection by toggling the switch under the network.

Log back into ZeroTier and click on your network name, scroll down to members, and tick auth.

Create a route to your server

As I just want to connect to my server remotely, I am creating a route just for this. Log back into ZeroTier and click on your network name, scroll down to members, and grab your ip address of your server.

Scroll up to Advanced, and Add Routes.

In Destination add the ip of the server with /32 at the end. This specifies just this ip. Change 192.168.1.5 for the ip address of your server

192.168.1.5/32

In the (via) section, add the ip you copied from the member section

10.244.0.1

Press submit.

You will now be able to see your server on the 192.168.1.5 (or whatever your server ip is).