-
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
Chat example #300
Comments
You'd have to enable NAT port mapping and discovery. Take a look at how the libp2p Host is constructed in #278. |
As Stebalien said NAT port mapping and discovery would be required for different networks. I am trying to include it in the chat example. Will update you if it works. |
@upperwal ok, thanks very much |
Please update the example, or add a new one 🙏 I don't understand what you mean in these comments. A complete functioning chat-example would help a lot with understanding how to connect peers behind NAT. |
@Arxcis thanks, i will try the example. |
As of v0.16.0, libp2p support hole punching, which should help with connectivity for nodes behind a NAT. |
remove dependency on go-addr-util
I see chat example have 2 limit:
Can you give some example with how 2 client chat both have private IP address (different network,has no public IP).
thanks very much.
The text was updated successfully, but these errors were encountered: