Is the Cloudflare STUN server free to use, similar to Google's STUN server?

Is stun.cloudflare.com:3478 a free server to use, like stun.l.google.com:19302?
19 Replies
Erisa
Erisa•2w ago
since its linked on https://developers.cloudflare.com/calls/turn/ id think its covered under this sentence
Using Cloudflare Calls TURN service is available free of charge when used together with the Calls SFU. Otherwise, it costs $0.05/real-time GB outbound from Cloudflare to the TURN client.
but not completely sure
James
JamesOP•2w ago
Yes, I read that, but I am not using it with Cloudflare calls. I just use it to get the optimal route and then establish a peer-to-peer connection. Once the peer-to-peer connection is established, I no longer need a STUN server.
Erisa
Erisa•2w ago
it sounds like even if they do decide to charge for that, it would be extremely cheap for your usage. im not super familiar with stun/turn but is the stun server authenticated? if its not then id assume itd have to be free
James
JamesOP•2w ago
nope i still connect with stun.cloudflare.com:3478 without the need of username and password but i am worried about if they get me rate limited
Erisa
Erisa•2w ago
hmm 🤔 yeah it would be good for them to be clear about this
James
JamesOP•2w ago
ya
Erisa
Erisa•2w ago
I'll ask someone at cloudflare and see if they can ask the team to clarify
James
JamesOP•2w ago
thx
Erisa
Erisa•2w ago
@James the Calls team confirmed that STUN is free to use, unlimited and unauthenticated, only TURN is not. They'll update the documentation soonish
James
JamesOP•2w ago
Thx that’s great
Quicksilver
Quicksilver•2w ago
@James , what is your use case?
James
JamesOP•2w ago
I am using it as fallback if stun is not able to make a connection I use tun server then
Quicksilver
Quicksilver•2w ago
Is it webRTC?
James
JamesOP•2w ago
Yup
Quicksilver
Quicksilver•2w ago
I'm guessing something broke for you sometime yesterday or the day before?
James
JamesOP•2w ago
Yup because I only give stun server when I give both the issue is fixed
Quicksilver
Quicksilver•2w ago
I am tracking down a similar issue with webRTC openai realtime api.
James
JamesOP•2w ago
I think you only provide stun in ice config
Quicksilver
Quicksilver•2w ago
I still haven't fully tracked down my issue. I was working on my project and it just stopped working. I checked other projects and they stopped as well. I have narrowed down to possibly needing a STUN or openai has enforced the ephemeral token rather than the direct token. Still tracking down rn. I should note that a stripped down version works fine locally @James Are you using the realtime api?

Did you find this page helpful?