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

webtorrent STUN server usage #831

Closed
Lev09 opened this issue Jun 8, 2016 · 3 comments
Closed

webtorrent STUN server usage #831

Lev09 opened this issue Jun 8, 2016 · 3 comments
Labels

Comments

@Lev09
Copy link

@Lev09 Lev09 commented Jun 8, 2016

How to use STUN server with webtorrent, is there any config for that ?
Maybe I am asking already answered question, but I cant figure out how to do that.

@feross feross added the question label Jun 8, 2016
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jun 8, 2016

WebTorrent includes a default STUN server, which you can see in simple-peer, on this line.

You can override it like this:

var client = new WebTorrent({
  tracker: {
    rtcConfig: {
      iceServers: [{ urls: 'stun:23.21.150.121' }]
    }
  }
})
@feross feross closed this Jun 8, 2016
@Lev09

This comment has been minimized.

Copy link
Author

@Lev09 Lev09 commented Jun 10, 2016

Thanks!

@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.