-
Notifications
You must be signed in to change notification settings - Fork 73
Start
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 your device.
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, after both instances have properly bootstrapped into the network (see output of kadnode-ctl status
) 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.
Please note that this 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.