Coder Social home page Coder Social logo

connection problem about peerjs HOT 3 OPEN

ioeti avatar ioeti commented on June 5, 2024
connection problem

from peerjs.

Comments (3)

SahilAggarwal2004 avatar SahilAggarwal2004 commented on June 5, 2024

This is an issue I am facing too. But this doesn't happen always, it happens only in some situations as mentioned by you. This didn't used to happen earlier, I guess this is some bug introduced by mistake either in peerjs library or webrtc in general, or possibly it may be because of this.

from peerjs.

jonasgloning avatar jonasgloning commented on June 5, 2024

from peerjs.

SahilAggarwal2004 avatar SahilAggarwal2004 commented on June 5, 2024

I believe @SahilAggarwal2004 is correct; this issue could be related to TURN.

When two Peers are behind a strict firewall or NAT, they can't communicate with each other directly and require a server to relay their data. Up until a few weeks ago, we maintained a free TURN server on a best-effort basis to prevent these connections from failing. However, since we had to discontinue this service, these specific connections will fail unless a TURN server URL is configured on the client.

In the linked post there’s both a service and a software for self-hosting mentioned. Please try them out, and if there are still problems with a working TURN setup, we can investigate further.

If I add the turn server configuration using the config property, will it replace the default configuration or append the config in default configuration?

from peerjs.

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.