Skip to content
Moritz Warning edited this page Nov 17, 2013 · 3 revisions

With KadNode running in the background, you can enter a special domain name into your browser or any application that accepts a domain name address (like google.com) and reach another computer.

First, you need to install KadNode on two computers. If you are using Ubuntu or Debian, then just grab the .deb package file an do sudo dpkg -i kadnode.*.deb to install it.

Both instances will instantly start to bootstrap a network (either locally or over the Internet). Now create a public/secret key pair like this:

kadnode --auth-gen-keys
public key: 70feb02409ab6d21a1888f81ff12d9aa4520768ecea8bac00a9574247dd0b065
secret key: d5bcf6f4f64c8d1d51aa953f5365a47b4378bdc386d540cda05574f8d1f0530670feb02409ab6d21a1888f81ff12d9aa4520768ecea8bac00a9574247dd0b065

Now add the secret string to your /etc/kadnode/kadnode.conf on the computer you want to reach:

--value-id d5bcf6f4f64c8d1d51aa953f5365a47b4378bdc386d540cda05574f8d1f0530670feb02409ab6d21a1888f81ff12d9aa4520768ecea8bac00a9574247dd0b065

You need to restart kadnode (/etc/init.d/kadnode restart) for the configuration to be updated. After a while, both instances will have been properly bootstrapped into the network (see output of kadnode-ctl status) and you can e.g. do

ssh root@70feb02409ab6d21a1888f81ff12d9aa4520768ecea8bac00a9574247dd0b065.p2p

Or enter the address into your browser. KadNode will intercept the .p2p domain and resolve it to the other computers IP address.

###Notes Please note that announcements are done every ~30 minutes. To be sure that the announcement of the public key was properly distributed - wait 30 minutes. The lookup itself may take a few seconds at first. Also, you probably need at least three instances if you have a small network that is not connected to Internet.

Clone this wiki locally