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.
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' }]
}
}
})
Thanks!
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.
Most helpful comment
WebTorrent includes a default STUN server, which you can see in
simple-peer, on this line.You can override it like this: