webtorrent STUN server usage

Created on 8 Jun 2016  路  3Comments  路  Source: webtorrent/webtorrent

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.

question

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:

var client = new WebTorrent({
  tracker: {
    rtcConfig: {
      iceServers: [{ urls: 'stun:23.21.150.121' }]
    }
  }
})

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

feross picture feross  路  9Comments

feross picture feross  路  4Comments

msqaddura picture msqaddura  路  5Comments

phuchptty picture phuchptty  路  6Comments

kevinsimper picture kevinsimper  路  4Comments