Skip to content

Instantly share code, notes, and snippets.

@dignifiedquire
Created March 16, 2016 19:26
Show Gist options
  • Select an option

  • Save dignifiedquire/476008d9d76eea723fde to your computer and use it in GitHub Desktop.

Select an option

Save dignifiedquire/476008d9d76eea723fde to your computer and use it in GitHub Desktop.
IPFS on Zerotier
  1. Setup your own Zerotier network, either using your own server or the provided one.
  2. Ensure the network provides ip4 and ip6 addresses

On all machines you want to connect

1. Install Zerotier

2. Install IPFS 0.4 (from source at the moment, see Instructions here)

3. Join Zerotiernetwork

  • Add the Zerotier id to the network
  • Join the network
  • Note down ip4 and ip6 addresses you are assigned

4. Setup IPFS

  • Run ipfs init
  • Update ~/.ipfs/config
// ...
  "Addresses": {
    "Swarm": [
      "/ip4/<ip4 from zerotier>/tcp/4001"
      "/ip6/<ip6 from zerotier/tcp/4001"
    ],
// ...
  • Remove all entries under "Bootstrap" and "SupernodeRouting": {"Servers"}"

  • Start IPFS using ipfs daemon

Have fun with your own private IPFS network

@rebroad
Copy link

rebroad commented Jul 27, 2016

what are the benefits of this?

@jbelke
Copy link

jbelke commented Dec 31, 2019

IPFS works on a file/space swap system swarm.
You now have decentralized provisioning of files without swapping with random 3rd parties but still have near 'instant' (~40s) deployment of assets to a cluster of controlled peers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment