Browser-Phone icon indicating copy to clipboard operation
Browser-Phone copied to clipboard

turn server

Open prathibhacdac opened this issue 10 months ago • 2 comments

Will the application work if the turn server is located inside a symmetric NAT?

prathibhacdac avatar Apr 16 '24 11:04 prathibhacdac

Your answer may be found here: https://www.rfc-editor.org/rfc/rfc3489

Applicability Statement This protocol is not a cure-all for the problems associated with NAT. It does not enable incoming TCP connections through NAT. It allows incoming UDP packets through NAT, but only through a subset of existing NAT types. In particular, STUN does not enable incoming UDP packets through symmetric NATs (defined below), which are common in large enterprises. STUN's discovery procedures are based on assumptions on NAT treatment of UDP; such assumptions may prove invalid down the road as new NAT devices are deployed. STUN does not work when it is used to obtain an address to communicate with a peer which happens to be behind the same NAT. STUN does not work when the STUN server is not in a common shared address realm. For a more complete discussion of the limitations of STUN, see Section 14.

Symmetric: A symmetric NAT is one where all requests from the same internal IP address and port, to a specific destination IP address and port, are mapped to the same external IP address and port. If the same host sends a packet with the same source address and port, but to a different destination, a different mapping is used. Furthermore, only the external host that receives a packet can send a UDP packet back to the internal host.

InnovateAsterisk avatar Apr 17 '24 05:04 InnovateAsterisk

I've configured STUN and TURN server in phone.js But sometimes I'm not getting the audio and video.

chrome://webrtc-internals shows the following error:

url: stun:x.x.x.x:3478 address: 192.168.56.x port: 62957 host_candidate: 192.168.56.x:62957 error_text: STUN binding request timed out. error_code: 701

prathibhacdac avatar Apr 17 '24 10:04 prathibhacdac