This may be a dumb question, but I'll ask it anyway.
I'm slowly wrapping my head around using webRTC for voice/audio chat, but one thing struck me.
If I'm creating a RTCPeerConnection, the urls and ports of my STUN and TURN servers are public, as they are hardcoded in my Javascript (or they could come down a websocket/XHR request, but they could still be intercepted).
e.g.
So my dumb question is - is there a way to lock these down? i.e. ensure that not just anyone with a webRTC app to test doesn't send their STUN and TURN requests directly to you?
How are people securing down their STUN and TURN servers? I'm wondering if there is a clever way to send credentials somehow encrypted over a websocket/XHR request?
Thanks!
Mark