-
Notifications
You must be signed in to change notification settings - Fork 989
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
NAT traversal support #1205
Comments
That's fine #636 was a bit meandering (hence closure) but okay with tracking this specifcally. |
Sorry, accidental close. |
beaver-tooth |
I would help on this enhancement, but could anybody give some hints about where to start in Grin sources? since I'm not familiar with what are related codes in Grin. According to history messages, We can use this crate: https://github.com/ustulation/p2p , and it provide some examples: https://github.com/ustulation/p2p/tree/master/examples In Grin p2p, there're:
|
Client connections are initiated in |
thanks, will try to look into that. |
The library that @garyyu mentioned I believe is related to maidsafe/crust which could be a better option. They have heavily tested NAT traversal within their community with "crust test events". |
Could you look at what integrating it would look like, based on what we already have in the |
We took a look at crust and underlined https://github.com/ustulation/p2p but found it's not so easy to integrate it with grin p2p |
I found this thing https://github.com/sbstp/rust-igd last night. It would be straightforward to integrate into grin::p2p although not nearly as comprehensive as https://github.com/ustulation/p2p it would add value for some users. Essentially rust-igd allows us to ask the router to forward ports for our app on behalf of the user using the "internet gateway device" (IGD) API. Should I go for an integration? This may be at odds with #2026 but I think it would be fine if we set the minor version in |
I'm pessimistic about UPNP but I may be out of sync with the real world. I'd test it, at least it could help home users. |
I had posted this in #636 but I am reposting here for clarity: Bitcoin abandoned uPNP and seem to be in favor of NAT-PMP/PCP support: bitcoin/bitcoin#11902 Also, I guess I2P is another way to avoid port forwarding. |
I couldn't find an issue tracking NAT traversal so I am opening one.
Some discussion already captured in #636
The text was updated successfully, but these errors were encountered: