Skip to content
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

Add WebRTC private to public example #204

Open
achingbrain opened this issue Feb 18, 2025 · 2 comments · May be fixed by #208
Open

Add WebRTC private to public example #204

achingbrain opened this issue Feb 18, 2025 · 2 comments · May be fixed by #208
Labels
good first issue Good issue for new contributors help wanted Seeking public contribution on this issue

Comments

@achingbrain
Copy link
Member

We have an example for WebRTC private to private (e.g. two browser peers behind NATs) where we use a Circuit Relay server to exchange SDP messages to establish a direct connection between the two nodes.

As of @libp2p/webrtc@5.1.0 support has landed for WebRTC-Direct listeners in Node.js, so it would be great to add a private to public example where a Node.js listener is created and a browser dials it without needing a relay.

@achingbrain achingbrain added help wanted Seeking public contribution on this issue good first issue Good issue for new contributors labels Feb 18, 2025
@Dhruv-Varshney-developer

Hello @achingbrain, I am working on this. Could you please assign it to me so others don’t duplicate the effort? I’ll create a PR with the necessary changes. Thanks!

@Nkovaturient Nkovaturient linked a pull request Mar 1, 2025 that will close this issue
3 tasks
@Nkovaturient
Copy link

Nkovaturient commented Mar 2, 2025

@achingbrain , Hey there!
I have setup a pvt and public node so far using @libp2p/webrtc@5.1.0 as desired and adequate configurations. However I keep running into this error:-

node index.js
Failed to create public node: no valid addresses were provided for transports [@libp2p/webrtc-direct]

ig, there is some issue in transport configurations and public-peer listening addresses
kindly review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good issue for new contributors help wanted Seeking public contribution on this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants