[libnice] Fwd: Re: STUN in NiceAgent

Youness Alaoui kakaroto at kakaroto.homelinux.net
Sun Jul 20 13:17:51 PDT 2014


Hi,

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.
I would suggest you look at http://stunserver.org/ they use the 'stun'
project from here : http://sourceforge.net/projects/stun/

I hope that helps,
Youness.



On Sun, Jul 20, 2014 at 10:00 AM, Olivier Crête <olivier.crete at collabora.com
> wrote:

> Hi,
>
> RFC5389 should be a superset of the older one, so I wouldn't be
> surprised if it didn't work. You can use the stund included in libnice,
> or rfc5466-turn-server (which also does STUN).
>
> On Sun, 2014-07-20 at 21:13 +0800, FerrenLiu wrote:
> > Hi,
> >
> >    Can you commend me a STUN/TURN server?  It looks like that 'restund'
> > can't suitable libnice, because it just support STUN RF5389.
> >
> >
> > Ferren
> >
> > On 07/20/2014 08:46 PM, Olivier Crête wrote:
> > > Hi,
> > >
> > > Afaik, RFC 3489 has all you need for the simple stun use case, the
> extra
> > > things in the newer RFC aren't needed/used in that case.
> > >
> > > Did you try with the "stunbdc" command line tool?
> > >
> > > Olivier
> > >
> > > On Sun, 2014-07-20 at 20:24 +0800, FerrenLiu wrote:
> > >> I have a STUN/TURN server in litral.com (use restund project).
> > >> When I ran simple-example 0 $(host -4 -t A litral.com | awk '{ print
> > >> $4 }'), I can't got the server reflective address whit the error "STUN
> > >> demux error: no FINGERPRINT attribute!"
> > >> So I trace the UDP package with Wireshark. It shows that libnice send
> > >> UDP package with protocol "CLASSIC-STUN" and restund response "STUN".
> > >>
> > >> I look into the libnice source code and find that
> > >>
> ------------------------------------------------------------------------------------------------
> > >> stun_agent_init (&cdisco->stun_agent, STUN_ALL_KNOWN_ATTRIBUTES,
> > >>        STUN_COMPATIBILITY_RFC3489,
> > >>        (agent->compatibility == NICE_COMPATIBILITY_OC2007 ||
> > >>         agent->compatibility == NICE_COMPATIBILITY_OC2007R2) ?
> > >>          STUN_AGENT_USAGE_NO_ALIGNED_ATTRIBUTES : 0);
> > >>
> ------------------------------------------------------------------------------------------------
> > >>
> > >> Why libnice hardcopy RFC3489 in here? How to change it to RFC5389?
> > >>
> > >>
> > >>
> > >>
> > >> On 07/03/2014 11:17 AM, 刘先国 wrote:
> > >>
> > >>> Who can show me a Psedo TCP example? I don't know how to use it.
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> _______________________________________________
> > >>> nice mailing list
> > >>> nice at lists.freedesktop.org
> > >>> http://lists.freedesktop.org/mailman/listinfo/nice
> > >> _______________________________________________
> > >> nice mailing list
> > >> nice at lists.freedesktop.org
> > >> http://lists.freedesktop.org/mailman/listinfo/nice
> >
> >
> >
> >
> > _______________________________________________
> > nice mailing list
> > nice at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/nice
>
> --
> Olivier Crête
> olivier.crete at collabora.com
>
> _______________________________________________
> nice mailing list
> nice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nice
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20140720/7e2fb1dd/attachment.html>


More information about the nice mailing list