Questions tagged [stun]

1

votes
1

answer
483

Views

How to solve: UDP send of xxx bytes failed with error 11 in Ubuntu?

UDP send of XXXX bytes failed with error 11 I am running a WebRTC streaming app on Ubuntu 16.04. It streams video and audio from Logitec HD Webcam c930e within an Electronjs Desktop App. It all works fine and smooth running on my other machine Macbook Pro. But on my Ubuntu machine I receive errors a...
Nerd
1

votes
0

answer
160

Views

WebRTC android hangs after answer. No ICE candidates received

I'm using the latest version of WebRTC Android that's available via Gradle. I have two physical android phones and am trying to use WebRTC to communicate between them. I have tried using lists of public STUN servers as well as setting up STUN/TURN with xirsys and also building and running coTurn (al...
Alex Meuer
1

votes
1

answer
46

Views

Retrieving NAT type and external IP address

So far I tried using pystun, but following the manual: import stun nat_type, external_ip, external_port = stun.get_ip_info() yields: >>> import stun >>> nat_type, external_ip, external_port = stun.get_ip_info() Traceback (most recent call last): File '', line 1, in File '/usr/local/lib/python3.6/di...
pbn
1

votes
0

answer
96

Views

WebRTC uses always TURN outside our LAN

My problem: I wrote a video chat application based on WebRTC. When two clients connect inside our LAN, they always get a Peer-to-Peer connection. But when a client from our LAN connects with a client outside our LAN it's always a Peer-to-TURN connection. When mobile devices connect with each other i...
Tsunamis
1

votes
1

answer
61

Views

STUN connection not completing

I am writing an RTP relay and am stumbling upon a problem. Based on the libnice threaded example I have written the part of the software that uses STUN to connect to a javascript running in chrome. Basically this is what happens on my software side: waiting for state READY or FAILED signal... SIGNAL...
Patrick Regnouf
1

votes
1

answer
153

Views

ICE solution on RFC 6314

in RFC6314, section 5.2.1.2, it mentions that after Client_L collected its candidate list, it sends INVITE to Client_R with the list, and then both ends can start connectivity check. I have a question is that why Client_L can send INVITE to Client_R? or why Client_R can receive those data (candidate...
eliott cho
1

votes
1

answer
408

Views

ICE (Interactive Connectivity Establishment) for file sharing

how ICE (Interactive Connectivity Establishment) can be used for file sharing?
Prashant Borde
1

votes
1

answer
201

Views

Ice4j: Testing IcePseudoTcp - STUN server needed?

Does anyone know the process of testing IcePseduoTcp? Is it self contained, or do you have to point it to a STUN server for it to work?
putty174
1

votes
1

answer
56

Views

Do we need STUN server after send first message in WebRTC procession?

Do we need to use STUN server everytime when we want to send a media message to other device or just use it in the first time? Because after we send first message, we've known our public IP address. I mean if we just need STUN server for the first time (to get Public Ip Address) so we don't care...
Bui Quang Huy
1

votes
1

answer
1.2k

Views

STUN/TURN/ICE implementation with Ejabberd server and XMPP client iOS

I am using ejabberd-16.04 on my mac and XMPPFramework from robbiehanson. It works fine for chatting, no problem. But now I want to add voice calling into my application. I am using Jingle Protocol for call establishment and it works fine for direct communication (i.e. both caller and callee are in s...
D4ttatraya
1

votes
1

answer
360

Views

STUN server xoring of IPv6

I'm trying to decode a STUN success response basing on RFC 5389: If the IP address family is IPv6, X-Address is computed by taking the mapped IP address in host byte order, XOR'ing it with the concatenation of the magic cookie and the 96-bit transaction ID, and converting the result to network byte...
j0kky
1

votes
1

answer
1.5k

Views

Configuration CoTurn on Ubuntu not working

I don't get any candidates while testing my STUN & TURN server (CoTurn) with Trickle ICE on a MacBook 10.12.6 using Chrome 62.0.3202.89: https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ with: stun::3478 turn::3478 [username:test] On Digital Ocean I created a droplet Ubunt...
Herman Fransen
1

votes
1

answer
1.4k

Views

coturn: Need help configurating my server correctly

I am trying to set up a STUN/TURN server on my local computer for a webrtc application of me. I decided to use coturn. Note that my server is running behind a NAT. So i fired up my Ubuntu VM and installed it. After reading through the wiki I got it working, atleast on my local network. For testing...
marco56
1

votes
1

answer
128

Views

How does STUN perform ICE connectivity check on Candidate Pairs?

I have gone through RFC 5389 and RFC 5245 and the newer RFC 8445. I understand how STUN works in returning the Server Reflexive Address or Relayed Address. The request is sent to the STUN server. My fundamental question is about ICE connectivity check using STUN. RFC 8445 states on Page 10: '...At...
RTC
1

votes
1

answer
0

Views

How is STUN able to bypass a proxy?

I have written a basic proxy server that swaps the header on incoming and outgoing traffic so that the proxy client requests appear as though originating from the public IP of the server. At least this is the case when going to a site such as whatismyip.com. However when I go to a webRTC leak tests...
plant
1

votes
1

answer
228

Views

udp packets dont make it back to the device

I am trying to contact a UDP server from a small java code on an Android device. When connected to my home wi-fi internet, the server is contacted and responds to the packet with data which then reaches the device. However when connected to a mobile network, the same program runs, the packets DO mak...
Vladimir Gazbarov
1

votes
1

answer
419

Views

Why is the webrtc blob address located on signalling server?

I've used the easyrtc toolkit (http://easyrtc.com/) (written for nodejs) to setup a chatting system inside my office network. I did not do much to implement this setup and simply used the demos which were provided with the toolkit. The application is hosted on a VM inside the office, while the defau...
iamlegend
1

votes
1

answer
364

Views

Implementing XOR-MAPPED-ADDRESS attribute on STUN server

From RFC 5389 Section 15.2: If the IP address family is IPv4, X-Address is computed by taking the mapped IP address in host byte order, XOR'ing it with the magic cookie, and converting the result to network byte order. If the IP address family is IPv6, X-Address is computed by taking the mapped IP...
Patrick Roberts
1

votes
1

answer
156

Views

ICE protocol what is base?

In ICE protocol, What is Base? I understood Base as, for the server reflexive candidate , host candidate is the base, is it correct or not? How to find the foundation of the candidate?
user4790894
1

votes
3

answer
157

Views

How does a STUN server behave when it receives request with same Transaction ID from diffrent STUN Agents?

When a STUN server receives a request from two different STUN Agents with the same Transaction ID, how should it behave?
Abhishek
1

votes
1

answer
373

Views

How to communicate directly to external client with IP and port [closed]

I made a game writen in JAVA. It has two players, one will be the server. A computer creates the game and serves it. Another computer (outside) needs to connect to the server using its IP and port. When they connect, the game starts and the client player send its moves to the server, the moves are c...
Mateus Pires
1

votes
2

answer
131

Views

Can network traversal service tokens be shared among the peers in a multi user WebRTC session

I have been going back and forth on this with a twilio support engineer, and I'm not sure if they understand my question completely. I'm hoping an evangelist/someone who has used the network traversal service in a production WebRTC application can help. I have a lambda microservice that requests a t...
imperiumsage
1

votes
1

answer
522

Views

Setting up Nodejs WebRTC Video call, and Turn / ICE fails, CORS is blocked

I have actually followed this WebRTC codelab (https://codelabs.developers.google.com/codelabs/webrtc-web/#7), but get stuck when needing to connect to ICE servers. Essential code here: main.js var pcConfig = { 'iceServers': [{ 'url': 'stun:stun.l.google.com:19302' } [...] if (location.hostname !== '...
Gideons
1

votes
1

answer
235

Views

Is WebRTC TURN bandwith usage the same as STUN?

I'm implementing HD screen sharing so minimizing bandwidth usage is very important. In the first scenerio, all clients are connected to a single client directly using stun (client a connects to client b, client a connects to client c, clients a connects to client d). In that case the user has to tra...
Zhinkk
1

votes
1

answer
354

Views

Understanding Stun working

I went through the Programming P2P application SO post. but I think I'm still unclear as to how the STUN work under the hood. So, I would like to post my understanding and hope to get them corrected. as per the example assuming that machine (A) IP is 192.168.1.2 running on (TCP client request on ST...
Viren
1

votes
1

answer
2.6k

Views

Installing CoTurn 4.5.0.6 on Ubuntu 16.04.3 x64 TLS not working

I am trying to install CoTurn 4.5.0.6 on a Digital Ocean Ubuntu 16.04.3 LTS. I can't use sudo apt-get install coturn since it installs version 4.5.0.3. Also I can't install Ubuntu 17.10 since I need long term support (TLS). I create a droplet on Digital Ocean with Ubuntu 16.04.3 LTS. Then I download...
Herman Fransen
0

votes
0

answer
12

Views

Issue with IOS Safari and WebRTC - Not Generating ICE Candidates

I realize a similar question has been asked here: iOS & Safari 11 WebRTC does not gather STUN/TURN Trickle ICE Candidates But (1) there is no answer and (2) it's from 2017 and web standards have changed. I am attempting to build a one-way video WebRTC application. I am using the Twilio NAT Traversal...
Jamie Corkhill
1

votes
1

answer
83

Views

How long do I need the TURN servers

If I have a TURN server which I use for my WebRTC application, do I have to rely on it for both creating connection between two peers sending data between these peers or can I close the server once the connection has been established?
Devanshu Linux
1

votes
1

answer
67

Views

Would caching ICE candidates and sdp not work even if we know exactly the route of the connection?

I understand that in P2P and more dynamic environment caching ICE candidates and sdp will not be a good practice, because the stuff you cache might not be able to apply for the next WebRTC connection. But how about the under the circumstances where we know exactly how the route of connection should...
Winston Chen
1

votes
1

answer
50

Views

How does the STUN server get IP address/port and then how are these used?

I'm trying to understand how WebRTC works and am having trouble understanding the role of STUN. From what I understand in reading about STUN on various web-pages, such as rfc5389, or watching Google's 2013 presentation on WebRTC, the only thing STUN seems to do is tell the client what it's public IP...
fernfern
1

votes
1

answer
594

Views

What is test1, test2 and test3 in case of STUN?

I didn't understood importance of three tests in case of STUN ? STUN server is used for knowing external port and ip address so why three requests? Thanks
Xinus
1

votes
2

answer
830

Views

testing TLV protocols

I need to test STUN protocol. Is there any framework to test this protocol? Any other test protocol framework that tests TLV based protocol would also be helpful. Thanks in advance. update: Adding some more details. STUN - rfc5389 (along with ICE - draft-ietf-mmusic-ice-19 )is an IETF protocol for N...
sthustfo
1

votes
1

answer
1.9k

Views

TURN server behind firewall - how to handle XOR-RELAYED-ADDRESS

I am running a TURN server (http://tools.ietf.org/html/rfc5766) on a server that is behind a firewall. The machine has a public IP address where incoming and outgoing network packets are sent to/from the server's private IP address. Basically, the server cannot bind sockets to the public IP address,...
Chris
1

votes
1

answer
0

Views

How does a TURN server send data to peers behind a NAT?

I understand in TURN there is a client, a TURN server, and peer(s). The client itself creates an Allocation on the TURN server, after which a relayed transport address is returned back to the client in order to send data to one or many peers. I understand how the client can get around its NAT, howev...
Kris
1

votes
2

answer
3.7k

Views

Can Asterisk 11 act as ICE server?

I have recently installed Asterisk 11.4 on my VM. I wanted to know if Asterisk 11 can act as a ICE server ? In Asterisk 11's wiki page , there is a mention of ICE but those configurations are for Asterisk to act as a end device and not as a server. There is a mention of stunserver and turnserver whi...
user2139084
1

votes
2

answer
132

Views

P2P communication is not working Java

What I am trying to do is, send data from my PC(local IP) to another PC(private IP) in internet. I wrote a java program to send/receive messages with stun resolver. Program: Resolve stun and get public IP and port Send message with same socket(resolve stun) to another program. Receiving with same so...
shantanu
1

votes
2

answer
579

Views

How to embedded IceCandidates to SDP?

The signalling mechanism which we have implemented requires to send the icecandidates in the sdp itself. Do you have any idea how to embed icecandidates in sdp? Also, if the icecandidates are embedded in sdp then how the PeerConnection will initiate p-2-p connection? Or does the PeerConnection can i...
Neernay
17

votes
2

answer
15.6k

Views

WebRTC - How many STUN/TURN servers do I need to specify?

I'm having trouble with NAT traversal and WebRTC. Videostreaming works with some people, but not with someone who's behind a student dorm router. I think this should be solved by using a TURN server. I've done that, it still isn't working, and now I'm wondering if the TURN server is working at all....
spacecoyote
6

votes
1

answer
5.3k

Views

Can we use google stun server (default for nodejs webrtc.io-client) for commercial apps?

https://npmjs.org/package/webrtc.io-client says: Usage rtc.createStream({'video': true, 'audio':true}, function(stream){ // get local stream for manipulation } rtc.connect('ws://yourserveraddress:8001', optionalRoom); // then a bunch of callbacks are available You can set the STUN server by calling...
Matical
3

votes
1

answer
3.1k

Views

Android P2P Video chat using SIPDROID

My plan is, to create a instant video chat App for Android. I've found Sipdroid wich gives me the opportunity to make video and voice calls using the SIP. The user should just open the App and be able to instantly video chat with another stranger from the pool. Now the question is: I only need to se...
botweb

View additional questions