TURN服务打通了,但是两个不同的内网还是没办法连接,问题在哪儿?

已经在公网服务器上搭建了 TURN 服务,并且在 trickle-ice 测试通过:

image.png

然后创建了 RTCPeerConnection,配置如下:

const pc = new window.RTCPeerConnection({
  iceServers: [
    {
      urls: `stun:stun.freeswitch.org`,
    },
    {
      urls: 'turn:xx.xx.xx.xx:3478',
      username: 'username',
      credential: 'password',
    },
  ],
})

傀儡方如果是使用公网,就可以连通;但是一旦傀儡方使用内网,就无法连通

现在不知道哪一步出错了

待解决 悬赏分:20 - 离问题结束还有 85天8小时10分12秒
反对 0举报 0 收藏 0

我来回答

回答1