-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Echo example with Routed host #275
Comments
Not sure if this is the same issue but I saw something similar when trying to get the echo example to work. I fixed my problem by setting the default mux in the opts as shown by @dmbreaker in issue #263 Worth a try?
|
that did the trick actually! |
so I have it running, but the peers don't actually find each other at the moment. Even though I've called Update - looks like the problem was I unwisely chose to use |
@jvsteiner actually, looking at my comment, I made two conflicting suggestions (the text said to use the client...). Regardless, either should have worked (assuming you were able to bootstrap) off the ipfs network. what bootstrap nodes did you use? |
at least in my current code, it works if I construct it as |
unfortunately, in re-reading the routed host |
So, I thought this logic lived in libp2p but apparently not... Code: https://github.com/ipfs/go-ipfs/blob/master/core/bootstrap.go We should probably break this out of go-ipfs (at least the core logic) but it may be a while until we do that. For now, you can probably replicate a simplified version in your code. Current bootstrap nodes:
|
Progress report: managed to get my nodes bootstrapped and finding each other via the ipfs DHT, however, running into some strange issues, for example I need to have a local ipfs daemon (v0.4.13) running for it to work with |
PR: #278 |
Hi, I'm working on an example using a routed host, and am roughly doing the following, which is based off advice from @Stebalien here.
The only real things I did differently (and I have tried a bunch of different combinations) is use the
NewDHTClient
constructor, instead ofNewDHT
and also to try and bootstrap the dht.Currently I'm stuck at this error at runtime - although I have experienced some others:
which traces back to this (go-peerstream/swarm.go:328):
so it seems like maybe there is supposed to be a mux in there somewhere and it isn't...
The text was updated successfully, but these errors were encountered: