Questions tagged [stun]

0

votes
0

answer
3

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.6k

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
564

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
2

votes
1

answer
396

Views

How do I send large files over hole punched (STUN) UDP without packet loss?

While looking for ICE/STUN libraries for a peer-to-peer Java application, I ran into a problem. I needed to be able to ensure reliable delivery. All Java ICE libraries that I could find offered UDP hole punching (via the STUN protocol), but not TCP hole punching. I want peers to be able to reliably...
2

votes
1

answer
220

Views

Computing Foundations for candidate in Interactive Connectivity Establishment (ICE) protocol

I am trying to compute Foundations for ice candidates, I am referring from RFC 5254 section 4.1.1.3.I have gone through the RFC 5254 but I am unable to understand how to compute foundations for candidates.Is there any algorithm for computing foundations for candidates in ICE protocol.
Abhishek
2

votes
1

answer
2.5k

Views

WebRTC iceConnectionState still in 'checking' state

I want to create simple video chat app. I use WebRTC and WebSockets with Node.js. I want to connect two devicaes in the same network but iceConnectionState stay on 'checking' state ale the time. What could be the problem? EDITED server.js //var uuid = require('uuid'); var fs = require('fs'); var web...
karoluch
2

votes
2

answer
2.1k

Views

A STUN and TURN server that work under 3G/4G Network

It is very interesting that I can actually make a mVoIP service from the scratch. I finally could make a call using OpenSIPs source through SIP protocol. I used external STUN server that helps me to find users' private IP address behind NAT firewalls. However, the free external STUN server cannot fi...
Jake
4

votes
2

answer
1.7k

Views

How to query a STUN server with JavaScript to get public IP and Port?

I am trying to find some code example to query a STUN server to get my public IP and Port, using JavaScript. Perhaps using the server at http://www.stunserver.org While the STUN specification is explained here http://www.ietf.org/rfc/rfc3489.txt ( this is a long document, obviously I don't expect y...
2

votes
0

answer
348

Views

iOS7 PJSIP Audio Issues 3G

I am facing audio issues while trying to use PjSip in an iOS app. Issue 1. If I enable STUN I see that audio works perfectly over WiFi, but on a 3G network there is absolutely no audio. Issue 2. If I disable STUN, it works over WiFi. But on 3G I only receive audio during outgoing calls but on an inc...
Jyotirmoy
4

votes
1

answer
2.3k

Views

WebRTC how STUN server feedbacks the SDP and ICE candidates?

I'm testing WebRTC procedure step by step for my sake. I wrote some testing site for server-less WebRTC. http://webrtcdevelop.appspot.com/ In fact, STUN server by google is used, but no signalling server deployed. Session Description Protocol (SDP) is exchanged manually by hand that is CopyPaste be...
Ken OKABE
12

votes
2

answer
17.7k

Views

what is STUN stun.l.google.com:19302 used for

I'm looking at the webrtc.html and peerconnection_server demo, and it is working fine between two Chrome browsers. My question is, what exactly is the first param of webkitPeerConnection ? pc = new webkitPeerConnection("STUN stun.l.google.com:19302", onSignalingMessage); Is it a third party STUN ser...
Vicky
3

votes
1

answer
1.6k

Views

WebRTC, STUN/TURN not working outside LAN

index.html (Offerer) var socket = io.connect('http://127.0.0.1:80'); //socket.io socket.emit("player 1"); var iceServers = { iceServers: [ {"url":"stun:turn1.xirsys.com"}, {"username":"myusername","url":"turn:turn1.xirsys.com:443?transport=udp","credential":"mycredential"}, {"username":"myusername",...
genesisxyz
12

votes
1

answer
9.7k

Views

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. Thanks! i am trying to get Streams to work via WebR...
Felix Hagspiel
1

votes
2

answer
1.2k

Views

How to establish peer connection in web app using coturn (stun/turn) server

I'm building a web app for cam broadcasting. I'm using Django for web app and coturn as (STUN/TURN) signalling server. My goal is to do it with WebRTC. I don't know how to connect a peer to the signalling server in order to be reachable by other peer. So what I need to know is how to stablish "PeerC...
serfer2
3

votes
1

answer
1.2k

Views

Compiling libnice for Android

I'm trying to compile libnice (v0.18 to be specific) for Android, but have run into some troubles. How can I compile libnice for Android? I have listed my attempts so far below. 1st Attempt My first try was using a custom Android.mk makefile but I got an error stating AI_NUMERICHOST undeclared (addi...
Managarm
1

votes
1

answer
540

Views

Get Public IP and port

While working a little bit with WebRTC i've learned what the beast is NAT and STUN and i was on my way to test my understanding how it all is working. Here is the link where u can get your remote address and port along with your local one. For example: my local ip:port is 192.168.1.2:4500 my interne...
Rezvan Chagaev
2

votes
1

answer
1.4k

Views

How to filter STUN packets by Message Transaction ID in wireshark

I am using Wireshark Network Protocol Analyzer 1.12.2 (Os: Windows). Is it possible to filter stun packets by Message Transaction ID from tcpdump using this software? Thanks in advance.
RajibTheKing
2

votes
1

answer
3.3k

Views

Java UDP STUN Hole Punching with DatagramSocket

I'm trying to to send a udp packet to a client across a NAT, both of us belong to a different NAT, we are familiar with the theory of STUN therefore the way to achieve this is to 'hole punch' our way through via a simple STUN server.. Basically the server just returns external IP address and port of...
Eric Kong
2

votes
2

answer
663

Views

Manually insert TURN users (Coturn) into a database

I'm trying to set up a TURN server for a project using Coturn but am finding that documentation is sketchy at best... I realise that there is a turnadmin tool that will do this for you, but I would greatly prefer to just run queries on my database directly. This is an app with potentially many users...
Marijn Ophorst
24

votes
5

answer
36.8k

Views

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 reported by the connectivity test. Has anyone looke...
mirazour
2

votes
1

answer
1.7k

Views

Program execution freezes on datagramSocket.receive method if device in standby mode

I implemented STUN client which sends requests to STUN server with specified period and during this period listens for requests from STUN server: try { byte[] respData = new byte[1024]; DatagramPacket bRespPacket = new DatagramPacket(respData, respData.length); datagramSocket.setSoTimeout(timeout);...
antiw
3

votes
1

answer
2.4k

Views

How does Android 2.3 SIP API handle NATs?

For a while now I've been playing around with the SipDemo in the Android 2.3 SDK. The documentation on Android's developer page is nicely written, but it's not a lot. It does not explain anything about IPs, ports, NAT and STUN. I know how this stuff is supposed to work, but it doesn't say how Andro...
ThreeChanges
2

votes
1

answer
1.6k

Views

how ICE (Interactive Connectivity Establishment) works?

I am reading documents regarding ICE and feel puzzled in one place. Step 1. Caller gathers transport candidates (i.e., host, STUN and TURN). Step 2. Caller sends a SIP INVITE to callee. The detail of this step is often omitted. Doesn't it imply NAT is already solved? Could someone help present a bi...
user180574
7

votes
2

answer
2.2k

Views

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 no right to configure the NATs manually. 3.User don'...
Smith.Lai
2

votes
0

answer
132

Views

Setup Restund in Google Compute Engine

I am new to WebRTC. I would like to set a TURN/STUN server. I found restund but there is no proper documentation on how to install it on ubuntu. Are there any good tutorials for setting up Restund or any other Turn/Stun server.
sidd607
3

votes
3

answer
3.5k

Views

NAT traversal techniques and idea

So I was in a middle of making NAT traversal. The scenario is next: I got two Android phones and I want to connect them(sockets) using HTTP server(both devices are behind NAT). So far so good, both clients connect to HTTP server, HTTP server records their IP address&PORTS, however there is a little...
user1327407
36

votes
4

answer
18k

Views

Java UDP hole punching example - connecting through firewall

Lets say I have two computers. They know each others public and private IPs via ice4j. One client listening and the other one sending some string. I'd like to see this happen via UPD hole punching: Let A be the client requesting the connection Let B be the client that is responding to the request...
Mat B.
1

votes
2

answer
1.4k

Views

How to create my own STUN or TURN server using java

I have been working on a video chat application using WebRTC and using Java Websocket as a Signalling server. This application is working successfully on Tomcat. Currently I am using​ Google's STUN server. var pc_config = {"iceServers": [{"url": "stun:stun.l.google.com:19302"}]}; var pc = n...
Kishor Prakash
13

votes
3

answer
11.9k

Views

Why a STUN Server Needs Two Different Public IP addresses

I have took a look to STUN Server settings in openfire, and this statement from there: "In order to act as a STUN server, two different public IP addresses on the same machine are required, as well as two different port numbers for each IP." I have researched on google, and generally stun servers n...
metdos
4

votes
1

answer
2.1k

Views

Programmatically determine the Router NAT type

I need to programmatically determine the Router NAT type in my program. I did look at some of the STUN related answers and UPnP related information on SO. But did not get any definitive answers. I looked at STUN RFC (rfc 5389) and it does not specify how to determine the NAT type. It does mention th...
sthustfo
2

votes
1

answer
4.1k

Views

STUN server for TCP flow

I am looking for a reliable STUN solution for the TCP flow. I have tried STUNT (by cornell University in the US) and XSTUNT (by a University in Taiwan). But they both seem old and useless. What I want to do is to transfer files between two clients in two different networks via C#. Please let me know...
mazkopolo
4

votes
1

answer
776

Views

NAT Traversal - Probability of success using STUN

I am developing a P2P application, and I need to use STUN and/or TURN for NAT traversal. I have looked into the issues that an arise when using STUN only (basically it will not always work because it is UDP based and some firewalls won't like that - the reason is not that interesting as per my quest...
orcaman
2

votes
2

answer
602

Views

WebRTC connection - STUN and TURN at the same time?

2 different computers, 2 Chromes, 2 different networks. I am making a WebRTC call between 2 peers described above and using getStats() to check the connection. The thing is that in one Chrome it shows "turn" in "connection" property and on another it shows "stun". Is that possible? I thought you e...
igorpavlov
3

votes
2

answer
919

Views

PubNub webrtc only working on local network

Ive asked a question about this before but without any luck.. Im having problems following this tutorial https://www.pubnub.com/blog/2014-10-21-building-a-webrtc-video-and-voice-chat-application/ . Ive written the code and it works flawlessly on local network, but when i try to connect with a remote...
5

votes
1

answer
3.5k

Views

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 support which methods? Which methods are commonly use...
user2422196
8

votes
1

answer
1.9k

Views

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 my WebRTC client to achieve the second point? Without...
lefloh

View additional questions