Comments (5)
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.
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.
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.
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.
I hope it works for you. If you run into problems - let me know.
from kadnode.
Related Issues (20)
- Can this work on a local mesh network
- Cannot compile in cygwin HOT 5
- can not start on windows HOT 8
- daemon crashes on resovle HOT 11
- keeps trying to uninstall debian package HOT 2
- can not build in cygwin HOT 3
- Publishing addresses for other nodes HOT 4
- here's an example address you can use HOT 10
- natpmp upnp features ? HOT 3
- Cannot build on Cygwin64. HOT 1
- Upgrade ideas HOT 3
- An odd bug HOT 4
- Upgrade idea HOT 2
- Announce with own CA certs HOT 4
- Ubuntu 22.04: unmet dependencies when installing deb HOT 2
- onion like domain with ed25519 HOT 9
- MX records? HOT 1
- Domain authorization HOT 4
- can't build with mbedtls 3.x HOT 8
- [feature request] Use the public key address to verify server TLS certificate HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kadnode.