RTCMultiConnection icon indicating copy to clipboard operation
RTCMultiConnection copied to clipboard

Please help.

Open ph4t0o0o0om opened this issue 6 years ago • 11 comments

I have this error. "ICE failed, your TURN server appears to be broken, see about:webrtc for more details Peer connection is closed between you & 1fw5ely6fboiksg83tj Object { } state: failed RTCMultiConnection.min.js:18:29996 Peer connection is closed between you & 1fw5ely6fboiksg83tj Object { } state: closed RTCMultiConnection.min.js:18:29996 Peer connection is closed between you & 1fw5ely6fboiksg83tj Object { } state: closed"

How to fix this?

ph4t0o0o0om avatar Oct 10 '18 03:10 ph4t0o0o0om

webrtcweb.com is down and coTURN and all other services (including apache2) are stopped. In the meanwhile, you can remove all links to coTURN:

Use following code in your HTML file:

connection.iceServers = [{
        'urls': [
            'turn:webrtcweb.com:4455?transport=udp', // restund udp
        ],
        'username': 'muazkh',
        'credential': 'muazkh'
    },
    {
        'urls': [
            'stun:stun.l.google.com:19302',
            'stun:stun.l.google.com:19302?transport=udp',
        ]
    }
];

If possible, please link & use third party TURN servers.


I (accidentally) tried to upgrade ubuntu and it affected everything including apt tool. I asked my service-providers to format and install older version of ubuntu, again.

Because apt tool is not working, so I can not do anything myself.

muaz-khan avatar Oct 10 '18 04:10 muaz-khan

Sir it it possible to run a stun and turn server localy? And sir I have email on you.

On Wed, Oct 10, 2018, 12:11 PM Muaz Khan [email protected] wrote:

webrtcweb.com is down and coTURN and all other services (including apache2) are stopped. In the meanwhile, you can remove all links to coTURN:

Use following code in your HTML file:

connection.iceServers = [{ 'urls': [ 'turn:webrtcweb.com:4455?transport=udp', // restund udp ], 'username': 'muazkh', 'credential': 'muazkh' }, { 'urls': [ 'stun:stun.l.google.com:19302', 'stun:stun.l.google.com:19302?transport=udp', ] } ];

If possible, please link & use third party TURN servers.

I (accidentally) tried to upgrade ubuntu and it affected everything including apt tool. I asked my service-providers to format and install older version of ubuntu, again.

Because apt tool is not working, so I can not do anything myself.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/muaz-khan/RTCMultiConnection/issues/649#issuecomment-428431597, or mute the thread https://github.com/notifications/unsubscribe-auth/AnlPnB7ImaEq76rQFl27IitjxhRfWn-Xks5ujXNtgaJpZM4XUh1D .

ph4t0o0o0om avatar Oct 10 '18 04:10 ph4t0o0o0om

@muaz-khan hi sir I already check your tutorial on how to setup a stun and turn server locally. I'm using windows machine. I already downloaded the simple-turn-windows-386.exe and try to run it but it only opens CMD in 1 second then suddenly close. What could I do for this? THANK YOU AS ALWAYS!

ph4t0o0o0om avatar Oct 11 '18 05:10 ph4t0o0o0om

I've fix coturn today. It should work now.

muaz-khan avatar Oct 11 '18 05:10 muaz-khan

Yes sir it is working now. But I want to try to run to my own local turn and stun server how to do that? I already downloaded the simple-turn-windows-386.exe and try to run it but it only opens CMD in 1 second then suddenly close. What could I do for this?

ph4t0o0o0om avatar Oct 11 '18 06:10 ph4t0o0o0om

Sir do you really know how to use this as my stun and turn server? Link: http://www.stunprotocol.org/

ph4t0o0o0om avatar Oct 11 '18 09:10 ph4t0o0o0om

Please check this:

  • https://github.com/enobufs/stun

muaz-khan avatar Oct 11 '18 09:10 muaz-khan

Okay sir. Now how can I used this? Do i need to change the codes on the IceServersHandler.js file? How?

ph4t0o0o0om avatar Oct 11 '18 09:10 ph4t0o0o0om

  • https://www.rtcmulticonnection.org/docs/iceServers/

In your HTML demo file:

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

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

// last step, set TURN url (recommended)
connection.iceServers.push({
    urls: 'turn:yourTURN.com:port',
    credential: 'password',
    username: 'username'
});

muaz-khan avatar Oct 11 '18 09:10 muaz-khan

Okay sir I'm gonna check this out tommorow gonna have a rest for today. Anw sir do you know something that turn server on node.js? Because I already have on STUN (THe one you gave on the comment)

ph4t0o0o0om avatar Oct 11 '18 10:10 ph4t0o0o0om

Hello Mr. Muaz, I too have same issue

On firefox console i found this error :

I have this error. "ICE failed, your TURN server appears to be broken, see about:webrtc for more details Peer connection is closed between you & 1fw5ely6fboiksg83tj

I tried the above solutions but none of them worked for me.

I am using RTCMultiConnection v3.4.4, also tried 3.6.9.

Issue is when i connect from the same network, streamer and viewer end works fine, while if streamer & viewer are on different network then viewer screen gets blank.

FYI : I am using "kurento media server" and nodejs.

rahul7827 avatar Aug 13 '21 06:08 rahul7827