Jump to content
  • 0

Does settings.webrtc.stunServerURI work in 2.1.0?


Pavel Tsukanov
 Share

Question

I tried to set STUN server on server side via setting settings.webrtc.stunServerURI and this settings does not work for me. My server has version 2.1.0 Enterpsise

Steps to reproduce
1. Remove stun server setting on client side. I.e. in index.html
This code
var pc_config = {
'iceServers' : [ {
'urls' : 'stun:stun.l.google.com:19302'
} ]
};
I changed to 
       var pc_config = null 

2. added the following line
settings.webrtc.stunServerURI=stun:stun.l.google.com:19302

into the following file

/usr/local/antmedia/webapps/WebRTCAppEE/WEB-INF/red5-web.properties  

restart server
2. Start publish and I get publishTimeoutError

Ant server works fine if I set Stun setting on client side and does not work if I set on server side. 

Any Idea?

Link to comment
Share on other sites

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0

Hi,

Stun server is used for client and server to find each other behind the NATs. In other words, it is used in the beginning of the connection between client and server. Therefore, the connection can't be established if your client doesn't know what is the STUN server. For further information you may take a look at the; https://antmedia.io/learn-webrtc-basics-components/

I hope this will clarify things a bit for you.
Thanks

Link to comment
Share on other sites

  • 0
Thank you for the answer. I am switching our application from 2.0.0 to 2.1.0. 2.0.0 version has not stun server settings on client side. I.e. client stun server settings is new for 2.1.0. And i am trying to understand what is the best place to place stun server setting. Based on previous messages i decided that i can set stun server settings on server side only. So must client has stun server settings always since 2.1.0 version or there is a way to set stun server settings on server side only?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...