Code Monkey home page Code Monkey logo

Comments (5)

murat-dogan avatar murat-dogan commented on July 26, 2024 1

Also supporting TURN server with #14

from libdatachannel.

paullouisageneau avatar paullouisageneau commented on July 26, 2024
  • You are right, when multiple STUN servers are specified, it uses one of the resolvable ones randomly. This behavior is acceptable according to RFC 8445, but it's different from the behavior of browsers implementing WebRTC, which consists in gathering candidates from all the STUN servers, allowing to address specific topologies with hosts between cascading NATs. Anyway, I don't see how to replicate the behavior of browsers with libnice for now.

  • I didn't implement STUN server credentials because as far as I know, STUN servers on the public Internet never have authentication. Credentials are typically for TURN servers, which are not supported.

from libdatachannel.

murat-dogan avatar murat-dogan commented on July 26, 2024

Some firewalls blocks all UDP communication.
I would love to use TCP ports for ICE communication and also for data channel.

Can we enable this option?

g_object_set(G_OBJECT(mNiceAgent.get()), "ice-tcp", FALSE, nullptr);

I made some tests and it looks OK.

from libdatachannel.

paullouisageneau avatar paullouisageneau commented on July 26, 2024

Sure, in that case could you please add an option enableIceTcp (with default false) to do so in Configuration?
Also, to do everything cleanly you would need to handle TCP candidates in Candidate::resolve() (it should use SOCK_STREAM and IPPROTO_TCP).

from libdatachannel.

paullouisageneau avatar paullouisageneau commented on July 26, 2024

ICE TCP support added in #16

from libdatachannel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.