<div dir="ltr"><div>Hi,</div><div><br></div><div>STUN exists as RFC3489 and RFC5389. The RFC3489 is used to find your external IP address, and that's what "stun servers" should use. The RFC5389 is more of a base protocol to be used as a tool for ICE. For stun discovery, we need to use RFC3489, for ICE connectivity checks, we use RFC5389. The stun server should detect we use RFC3489 and reply accordingly anyway.<br>
</div><div>I would suggest you look at <a href="http://stunserver.org/">http://stunserver.org/</a> they use the 'stun' project from here : <a href="http://sourceforge.net/projects/stun/">http://sourceforge.net/projects/stun/</a></div>
<div><br></div><div>I hope that helps,</div><div>Youness.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 20, 2014 at 10:00 AM, Olivier Crête <span dir="ltr"><<a href="mailto:olivier.crete@collabora.com" target="_blank">olivier.crete@collabora.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
RFC5389 should be a superset of the older one, so I wouldn't be<br>
surprised if it didn't work. You can use the stund included in libnice,<br>
or rfc5466-turn-server (which also does STUN).<br>
<div class="HOEnZb"><div class="h5"><br>
On Sun, 2014-07-20 at 21:13 +0800, FerrenLiu wrote:<br>
> Hi,<br>
><br>
>    Can you commend me a STUN/TURN server?  It looks like that 'restund'<br>
> can't suitable libnice, because it just support STUN RF5389.<br>
><br>
><br>
> Ferren<br>
><br>
> On 07/20/2014 08:46 PM, Olivier Crête wrote:<br>
> > Hi,<br>
> ><br>
> > Afaik, RFC 3489 has all you need for the simple stun use case, the extra<br>
> > things in the newer RFC aren't needed/used in that case.<br>
> ><br>
> > Did you try with the "stunbdc" command line tool?<br>
> ><br>
> > Olivier<br>
> ><br>
> > On Sun, 2014-07-20 at 20:24 +0800, FerrenLiu wrote:<br>
> >> I have a STUN/TURN server in <a href="http://litral.com" target="_blank">litral.com</a> (use restund project).<br>
> >> When I ran simple-example 0 $(host -4 -t A <a href="http://litral.com" target="_blank">litral.com</a> | awk '{ print<br>
> >> $4 }'), I can't got the server reflective address whit the error "STUN<br>
> >> demux error: no FINGERPRINT attribute!"<br>
> >> So I trace the UDP package with Wireshark. It shows that libnice send<br>
> >> UDP package with protocol "CLASSIC-STUN" and restund response "STUN".<br>
> >><br>
> >> I look into the libnice source code and find that<br>
> >> ------------------------------------------------------------------------------------------------<br>
> >> stun_agent_init (&cdisco->stun_agent, STUN_ALL_KNOWN_ATTRIBUTES,<br>
> >>        STUN_COMPATIBILITY_RFC3489,<br>
> >>        (agent->compatibility == NICE_COMPATIBILITY_OC2007 ||<br>
> >>         agent->compatibility == NICE_COMPATIBILITY_OC2007R2) ?<br>
> >>          STUN_AGENT_USAGE_NO_ALIGNED_ATTRIBUTES : 0);<br>
> >> ------------------------------------------------------------------------------------------------<br>
> >><br>
> >> Why libnice hardcopy RFC3489 in here? How to change it to RFC5389?<br>
> >><br>
> >><br>
> >><br>
> >><br>
> >> On 07/03/2014 11:17 AM, 刘先国 wrote:<br>
> >><br>
> >>> Who can show me a Psedo TCP example? I don't know how to use it.<br>
> >>><br>
> >>><br>
> >>><br>
> >>><br>
> >>> _______________________________________________<br>
> >>> nice mailing list<br>
> >>> <a href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a><br>
> >>> <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
> >> _______________________________________________<br>
> >> nice mailing list<br>
> >> <a href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a><br>
> >> <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> nice mailing list<br>
> <a href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Olivier Crête<br>
<a href="mailto:olivier.crete@collabora.com">olivier.crete@collabora.com</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
nice mailing list<br>
<a href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
</div></div></blockquote></div><br></div>