0

in about:webrtc in firefox my IceState is always "in progress" until it fail. If i use the website in local it works, but if a friend try to call me it doesn't work the remote starts but it's blank.

my turn stun server:

{ "iceserver":{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
{url:'stun:stun3.l.google.com:19302'},
{url:'stun:stun4.l.google.com:19302'},
{url:'stun:stunserver.org'},
{url:'stun:stun.softjoys.com'},
{url:'stun:stun.voiparound.com'},
{url:'stun:stun.voipbuster.com'},
{url:'stun:stun.voipstunt.com'},
{url:'stun:stun.voxgratia.org'},
{url:'stun:stun.xten.com'},

And i'm using an AWS server as STUN and signaling. in about:webrtc errors:

INFO setting pair to state FAILED ERR specified too many components WARNING specified bogus candidate ERR pairing local trickle ICE candidate srflx

Marco
  • 23
  • 1
  • 7

1 Answers1

3

Your setup seems to require TURN and you have not provided working TURN servers.

By having ten stun servers, you're trying to get an opinion about your public IP address from ten different people. The answer won't change. Just use a single STUN server...

Using other people's TURN credentials is not something you should do without permission. If you test the credentials using http://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ you will notice that you don't get relay candidates. For turn:numb.viagenie.ca the credentials are incorrect and 192.158.29.39 doesn't seem to be running a TURN server anymore.

Philipp Hancke
  • 15,855
  • 2
  • 23
  • 31
  • I'm not using ten server at the same time. Now I'using one stun server ({url:'stun:stun.l.google.com:19302'} but nothing change. – Marco Jun 11 '15 at 15:46
  • using just a STUN server will not help ~20% of the time. – Philipp Hancke Jun 11 '15 at 17:21
  • I need a TURN? Which One? – Marco Jun 11 '15 at 17:29
  • 1
    You can host this one on the cloud. This one is free: https://code.google.com/p/rfc5766-turn-server/ – Michael P Jun 11 '15 at 20:19
  • Thanks @MichaelP, I've created my server, but nothing change. – Marco Jun 12 '15 at 12:24
  • You could also try xirsys.com ... they have a free tier. You'll have to make a backend REST call to get real time credentials. – Michael Gorham Jun 12 '15 at 15:16
  • With google server i have this error "reason: allocation watchdog determined stale session state" and with xirys I'm not underdestandig how to connect with the server – Marco Jun 12 '15 at 18:07
  • Well to be honest I don't really understand the error you're getting. @Marco when you say you've created the server. Did you host it on the cloud? It has to be above all the NATs that the 2 peers are using. Have you tried a different browser? I've had issues with the difference between Chrome and Firefox implementation difference before. Have you tried using it on your local network, but ignoring the host ice candidates? and try and use only the stun or turn? Basically try to isolate the problem – Michael P Jun 12 '15 at 20:50
  • I've installed the google server and signaling server on an AWS server. If i use this configuration(signaling+google on AWS) beetween two peer in my network works. But if I use 2 peer that they dont'belong at the same network the ice failed. – Marco Jun 13 '15 at 15:00
  • I'm trying to figure out if it's the STUN/TURN servers that might be blocked by your network. Try this: In your onicecandidate ( the callback that is called when you get your ice candidates that you send them to the peer) , in your network, do not send the ice candidates that have the "typ host", and "typ srflx". take only the "typ relay" and send those to your peer. Do that on both peers. This will force to use turn server. See if it works. Do the same with allowing only typ srflx, and test your stun servers. Let me know the results. I know it must be very frustrating so I'm trying to help. – Michael P Jun 13 '15 at 20:27
  • Thanks @Michael for the help. I will try in the next few days – Marco Jun 15 '15 at 09:52
  • Hi, I'm facing same issue. also my peerconnection not getting any relay candidate. – Biju Kalanjoor Jan 22 '21 at 15:27