Pavel Tsukanov Posted October 29, 2020 Share Posted October 29, 2020 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:19302into 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 More sharing options...
0 Tahir Posted October 30, 2020 Share Posted October 30, 2020 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 More sharing options...
0 Pavel Tsukanov Posted October 30, 2020 Author Share Posted October 30, 2020 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 More sharing options...
0 Tahir Posted November 2, 2020 Share Posted November 2, 2020 Hi Pavel, My suggestion is that; download the 2.2.0 version instead of 2.1.0 or 2.0.0 and you are good to go without changing any STUN server settings. Thanks Link to comment Share on other sites More sharing options...
Question
Pavel Tsukanov
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
into the following file
/usr/local/antmedia/webapps/WebRTCAppEE/WEB-INF/red5-web.properties
Link to comment
Share on other sites
Top Posters For This Question
2
2
Popular Days
Oct 30
2
Oct 29
1
Nov 2
1
Top Posters For This Question
Tahir 2 posts
Pavel Tsukanov 2 posts
Popular Days
Oct 30 2020
2 posts
Oct 29 2020
1 post
Nov 2 2020
1 post
3 answers to this question
Recommended Posts