Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying WebRTC Blueprints
  • Table Of Contents Toc
WebRTC Blueprints

WebRTC Blueprints

By : Andrii Sergiienko
4.2 (9)
close
close
WebRTC Blueprints

WebRTC Blueprints

4.2 (9)
By: Andrii Sergiienko

Overview of this book

Table of Contents (13 chapters)
close
close
WebRTC Blueprints
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
1
Index

Using STUN and TURN


As you know from Chapter 1, Developing a WebRTC Application, WebRTC uses the ICE technology and utilizes STUN/TURN servers when establishing a peer-to-peer connection process to break through firewalls and NAT. The difference between using STUN and TURN is schematically visualized in the following diagrams (we also used these diagrams in Chapter 1, Developing a WebRTC Application):

The following diagrams show a peer-to-peer connection using the STUN server:

The following diagram represents a general simple case of when the TURN server is used. Here, we have a situation where both peers use the same TURN server. We can see that peers use the STUN server to discover their network parameters and use the TURN server exchanging with media data. Technically, every TURN server can also serve as a STUN server. So, in the diagram, the STUN and TURN servers are represented as separate entities, but in the real world, they are usually one physical TURN/STUN server.

On the other hand...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
WebRTC Blueprints
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon