Questions tagged [turn]

Traversal Using Relays around NAT is an internet protocol that allows clients to receive connections even if their addresses are translated by middleware.

Traversal Using Relays around NAT (abbreviated: TURN) is an internet protocol that allows clients to receive connections even if their addresses are translated by middleware like NATS or firewalls. A related concept is .

Not to be confused with:

415 questions
77
votes
5 answers

How does WebRTC work?

I'm interested in Peer-to-Peer connections in the browser. Since this seems to be possible with WebRTC, I'm wondering how it works exaclty. I've read some explanations and saw diagrams about it and now it's clear to me, that the connection…
Van Coding
  • 24,244
  • 24
  • 88
  • 132
62
votes
10 answers

STUN/TURN server connectivity test

I am trying to figure out how to test whether a STUN/TURN server is alive and properly responding to connections. Ideally this test would be performed from an external machine, just in case the STUN/TURN machine is down for this case should also be…
mirazour
  • 723
  • 1
  • 6
  • 7
39
votes
9 answers

CoTURN: How to use TURN REST API?

I have build coturn and run it successfully. ip:192.168.1.111. Now the question I faced is to get the Turn credential through REST API. https://datatracker.ietf.org/doc/html/draft-uberti-behave-turn-rest-00 According to the passage the request…
LoveLxr
  • 391
  • 1
  • 3
  • 3
35
votes
2 answers

Implementing our own STUN/TURN server for WebRTC Application

I am working on a webrtc application and have to implement following TURN server. https://code.google.com/p/rfc5766-turn-server/ I am following this tutorial. http://www.dialogic.com/den/developer_forums/f/71/t/10238.aspx and it says to reference…
Sam Fast
  • 571
  • 2
  • 9
  • 16
25
votes
2 answers

How to create stun turn server instance using AWS EC2

Actually i wants to use my own stun/Turn server instance and i want to use Amazon EC2 .If anybody has any idea regarding this please share with me the steps to create or any reference link to follow.
satya
  • 3,508
  • 11
  • 50
  • 130
21
votes
3 answers

STUN, TURN, ICE library for Java

I need to establish a P2P UDP and TCP Connection between two Users. Both of them are behind a NAT. A little research leads me to STUN, TURN and ICE. Is there any Java solution (library) except jSTUN which seems to work only on UDP. And TURN, ICE is…
Hemeroc
  • 2,176
  • 5
  • 23
  • 29
19
votes
2 answers

ICE vs STUN vs TURN

I've read that ICE is an agent on the WebRTC server which sends SDP information of users to STUN or TURN server. STUN and TURN server gives this SDP information and makes a P2P connection for the users. Is that true? So, what is the exact…
M. Rostami
  • 999
  • 3
  • 16
  • 27
18
votes
2 answers

What is 'realm' in TURN server?

I want to host a TURN server for my WebRTC project, but I don't know what the 'realm' attribute does. I've looked at coturn and pion and they both seem to require me to enter this. Can someone explain what it is?
user11478109
16
votes
1 answer

Understanding SFU's, TURN servers in WebRTC

If I am building a WebRTC app and using a Selective Forwarding Unit media server, does this mean that I will have no need for STUN / TURN servers? From what I understand, STUN servers are used for clients to discover their public IP / port, and TURN…
shmth
  • 458
  • 3
  • 11
14
votes
1 answer

How to secure a TURN server for WebRTC?

I've just installed rfc5766-turn-server (https://code.google.com/p/rfc5766-turn-server/) on an Amazon server in order to relay my WebRTC calls. Since authentication username and password will be distributed to every client in WebRTC iceServers, how…
jbescoyez
  • 1,393
  • 9
  • 17
13
votes
1 answer

How does WebRTC decide which TURN Servers to Use

Branching off this question WebRTC - How many STUN/TURN servers do I need to specify? How does WebRTC determine which TURN servers to use when more than one is provided?
Ternary
  • 2,401
  • 3
  • 31
  • 54
12
votes
1 answer

Twilio WebRTC TURN relay randomly stops working after a few minutes

I am using the Twilio Network Traversal Service as part of a native application I am working on to perform peer-to-peer remote desktop connections. We implement a subset of the WebRTC protocol stack that is equivalent to the WebRTC data channels…
awakecoding
  • 428
  • 5
  • 15
10
votes
1 answer

Check whether WebRTC peer connection is passing through TURN server or not

I've got a videoconference application that is working perfectly using HTML5 + WebRTC. The STUN/TURN server is provided by a third party company which is not for free. As you may know, WebRTC after some information exchange between browsers, it…
Gonzalo
  • 121
  • 2
  • 5
10
votes
2 answers

How to record a relayed stream on server using TURN

So here's the story, I'm building a WebRTC app and I have to record the stream on server. "WebRTC is p2p dude, choose a media server" Yes, I know, please avoid this comment ;) But then I tought about one thing, what if I force all the stream to use…
Manza
  • 3,427
  • 4
  • 36
  • 57
10
votes
1 answer

Is 'long-term credentials' authentication mechanism *required* for WebRTC to work with TURN servers?

I'm intending to run my own TURN service for a WebRTC app with coturn - https://code.google.com/p/coturn/. The manual says this about authentication and credentials: ... -a, --lt-cred-mech Use long-term credentials mechanism (this…
Gus Hogg-Blake
  • 2,393
  • 2
  • 21
  • 31
1
2 3
27 28