Giter VIP home page Giter VIP logo

Comments (5)

mwarning avatar mwarning commented on May 25, 2024

You can start KadNode with "kadnode --value-id mycouchdb1.p2p" and "kadnode --value-id mycouchdb2.p2p" on the other computer. Do "kadnode-ctl import bttracker.debian.org" on both computers for boostrapping.
Then you can resolve mycouchdb2.p2p and mycouchdb1.p2p on both computers. E.g. try "ping mycouchdb1.p2p"
After an initial delay it should work.

If you have installed the debian package, you can put the initial bttracker.debian.org into /etc/kadnode/peers.txt,
set hostname in /etc/default/kadnode to mycouchdb1.p2p or something else. After /etc/init.d/kadnode start
you should be able to ping both hosts. Don't forget the .p2p suffix, otherwise KadNode won't pick it up.

You can even use mycouchdb1.p2p in your browser.. :-)

from kadnode.

vkefallinos avatar vkefallinos commented on May 25, 2024

thank you for the guidelines.Is there a way to bind mycouchdb1.p2p to the couchdb port 5984?So when someone running kadnode goes to mycouchdb1.p2p it'll take him to 0.0.0.0:5984 where couchdb binds.

And a last question: how could I implement some sort of authentication handshake to find the right user between users with the same uri?

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

KadNode is able to transfer not only the ip address, but also the port. But the DNS interfaces of KadNode (when using "ping mycouchdb1.p2p") are not able to pass along the port (DNS doesn't support that).
If you also want the port you have to add the port to the --value-id argument or the hostname (like mycouchdb1.p2p:5984).
On the other nodes you can do "kadnode-ctl search mycouchdb1.p2p" followed by "kadnode-ctl lookup mycouchdb1.p2p" to get the ip address and the port; but I don't know how you plug this into couchdb.
Maybe a script?

Regarding authentication; you could write some script that does ssh to the other node and check if
the fingerprint and login works. But that is ugly, surely there is a better.

from kadnode.

vkefallinos avatar vkefallinos commented on May 25, 2024

You are great.Thank you.I will try all this when i find a second computer.For now i'm installing virtual boxes with the hope it works.

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

I hope it works for you. If you run into problems - let me know.

from kadnode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.