Questions tagged [stun]

STUN stands for Session Traversal Utilities for NAT. It helps peers located behind NATs communicate with each other when they only have private IP addresses.

STUN stands for Session Traversal Utilities for NAT. It helps peers located behind different NATs communicate with each other when they only have private IP addresses.

The underlying technique used by STUN is to have both peers contact a central peer (having a public IP address) to help them communicate directly with each other. Achieving this involves performing NAT hole punching. Performing STUN is not always possible because of restrictions established on NATs.

The original hole punching method used by STUN is now deprecated, because it does not cover all cases properly.

460 questions
17
votes
2 answers

Whether STUN server is needed within LAN for WebRTC?

I have developed a p2p video chat using Webrtc. I am aware that STUN or TURN server is required to identify the public IP behind NAT. Currently am using Google's STUN server. I have the application installed in the server connected to the LAN which…
Mano
  • 315
  • 1
  • 5
  • 12
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
15
votes
2 answers

Remote VideoStream not working with WebRTC

EDIT: I wrote a detailed tutorial explaining how to build an simple Videochat-application including a signaling server: Tutorial: Create your own Videochat-Application with HTML and JavaScript Please tell me if you find it helpful & understandable.…
Felix Hagspiel
  • 2,634
  • 2
  • 30
  • 43
14
votes
5 answers

How does WebRTC handle many-to-many connections?

if I am in a room with other 7 users, I am wondering if WebRTC force every user to establish a connection to each one of other participants. Obviously it would consume something like 7kb/s*7 download and even upload, and many connection cannot…
M4rk
  • 2,172
  • 5
  • 36
  • 70
14
votes
1 answer

What is STUN and does it need a port-forwarded server?

I've done some research on p2p communication without a base server, and came over STUN. From what I've read, STUN is a way of NAT "Hole Punching" that would not require a peer to be port-forwarded to be connected to. Is this correct, and what…
daviga404
  • 528
  • 1
  • 5
  • 21
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
11
votes
1 answer

UDP/TCP hole punching vs UPnP vs STUN vs?

I try to make a P2P Program and need help with getting through the NAT of the clients. I have read many questions here on stackoverflow, but i never got what the drawbacks and benefits of all the Methods to get through a NAT are. How many routers…
user2422196
  • 297
  • 3
  • 13
9
votes
0 answers

WebRTC fails to connect P2P even though peers can send UDP packets to each other

I was under the impression that WebRTC goes to great lengths to achieve P2P connectivity despite NATs. [1][2] That's why I was surprised to learn that WebRTC fails to connect peers in some situations where a P2P connection is easy to achieve. I…
Atte Juvonen
  • 4,922
  • 7
  • 46
  • 89
9
votes
2 answers

Force TCP for WebRTC PeerConnections

Is it possible to force a TCP tunneled (TLS) connection with WebRTC? We are developing a WebRTC application for our business, but we are experiencing some major issues with incoming UDP streams caused by our internal network. We are already using a…
Rolf Beh
  • 347
  • 3
  • 5
  • 14
9
votes
1 answer

How to configure WebRTC with Coturn and oAuth

I want to use coturn with oAuth. If I understood it correctly I need to do two things: Storing the oAuth tokens in the database coturn is using Sending the ACCESS-TOKEN and USERNAME STUN attributes First point is clear but how do I need to change…
lefloh
  • 10,653
  • 3
  • 28
  • 50
8
votes
0 answers

Webrtc not connecting on different network even on TURN

I am using RTCmulticonnection in one of my project everything works fine except it is not working on different networks. I Have gone through Github issue which state that it needs turn server to run it on different networks. but i already configured…
asimdev
  • 705
  • 1
  • 8
  • 22
8
votes
1 answer

How do I set up Node/Express to act as a STUN server?

I'm looking for any good resources on the subject or maybe an open source project that implements a STUN server using Node/Express.
Tony Rizko
  • 315
  • 2
  • 9
8
votes
1 answer

under what scenarios does SERVER REFLEXIVE and PEER REFLEXIVE addresses/candidates differ from each other?

I was going through the ICE/STUN specification and had a question. If I am located behind a NAT which could be a Full Cone, Restricted or Port Restricted but not a symmetric NAT and considering I am using UDP, then in this case my SERVER REFLEXIVE…
soupybionics
  • 4,200
  • 6
  • 31
  • 43
8
votes
3 answers

HTTP Server behind NATs

I'm trying to make an (apache) server behind multi-layered NAT to be accessible from Internet. Restrictions: Avoid relay. There is a public server (we call him the OldMan) for login / stun, but its bandwidth is too poor to carry relay data. I have…
Smith.Lai
  • 142
  • 1
  • 8
7
votes
1 answer

The server stun:stun.l.google.com:19302 returned an error with code=701: STUN host lookup received error

I am facing this error while testing STUN Servers in Chrome: The server stun:stun.l.google.com:19302 returned an error with code=701: STUN host lookup received…
Faizan Mubasher
  • 4,427
  • 11
  • 45
  • 81
1
2
3
30 31