Javascript Webrtc未连接到不同的网络,即使是打开

Javascript Webrtc未连接到不同的网络,即使是打开,javascript,webrtc,stun,turn,rtcmulticonnection,Javascript,Webrtc,Stun,Turn,Rtcmulticonnection,我在我的一个项目中使用了一切正常,除了它不在不同的网络上工作。我已经经历了它需要转换服务器才能在不同网络上运行它的状态。但是我已经根据配置了turn服务器 这是我的密码 <script src="https://rtcmulticonnection.herokuapp.com/dist/RTCMultiConnection.min.js"></script> <script src="https://rtcmulticonnection

我在我的一个项目中使用了一切正常,除了它不在不同的网络上工作。我已经经历了它需要转换服务器才能在不同网络上运行它的状态。但是我已经根据配置了turn服务器

这是我的密码

<script src="https://rtcmulticonnection.herokuapp.com/dist/RTCMultiConnection.min.js"></script>
<script src="https://rtcmulticonnection.herokuapp.com/socket.io/socket.io.js"></script>

<script>
var connection = new RTCMultiConnection();

// this line is VERY_important
connection.socketURL = 'https://rtcmulticonnection.herokuapp.com:443/';

// if you want audio+video conferencing
connection.session = {
    audio: true,
    video: true
};

// first step, ignore default STUN+TURN servers
connection.iceServers = [];

// second step, set STUN url
connection.iceServers.push({
    urls: 'stun:mydimain.com:3478'
});

// last step, set TURN url (recommended)
connection.iceServers.push({
    urls: 'turn:mydimain.com:3478',
    credential: 'mypassword',
    username: 'myusername'
});

connection.openOrJoin('this-is-your-room-id');
</script>
在WEBRTC内部构件icecandidateerror中获取以下错误

url: turns:mydimain.com:5349?transport=tcp
address: xxx.xxx.xx.x
port: 63612
host_candidate: address: xxx.xxx.xx.x:63612
error_text: Address not associated with the desired network interface.
error_code: 600
现在我做错了什么?任何帮助都将不胜感激。
谢谢

我也在我的回合服务器上尝试了上述脚本。正如你所说,firefox仍然会抛出一个错误。有很多人在Github上提出了关于这个话题的问题。希望Muaz Khan能想出解决办法。@Ziauz是不是不通过ssl证书连接的问题?我有一个ssl证书,我得到了相同的错误,但不是这个脚本…@ChagaiFriedlander可能是这个错误是由于IPV6相关的转向,我想我们需要指向一个IPV6地址来转向
url: turns:mydimain.com:5349?transport=tcp
address: xxx.xxx.xx.x
port: 63612
host_candidate: address: xxx.xxx.xx.x:63612
error_text: Address not associated with the desired network interface.
error_code: 600