Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection problem #1182

Open
ioeti opened this issue Dec 28, 2023 · 3 comments
Open

connection problem #1182

ioeti opened this issue Dec 28, 2023 · 3 comments
Labels
client related to peerjs client

Comments

@ioeti
Copy link

ioeti commented Dec 28, 2023

Using this on work software https://cloudio.tangramerp.com/communicator4.html?id=donkey where id=.... just forces a userID.... I encounter the following issue :

server loaded page connects to another user, but as soon we sent data the connection disconnects. But this at moment just with one user.
The same page loaded locally at the same user works perfect in his network.

( So I do not think there is a problem with Why am I unable to connect?
You could be behind a symmetric NAT, in which case you'll need to set up a TURN server.
Another possible issue is your network blocking port 443, which the PeerServer cloud runs on. In this you must use your own PeerServer running on an appropriate port instead of the cloud service. )

with my testings local to local, local to server, server to server , both using the same network as well as different networks ( mobile phone and lan ) I could not obtain this issue. (video call still in building, will not work)

Any idea ?

Regards ..a wonderful piece of Software...by the way.
Claudio Klemp

@SahilAggarwal2004
Copy link

SahilAggarwal2004 commented Jan 2, 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.

@jonasgloning
Copy link
Member

jonasgloning commented Jan 2, 2024 via email

@SahilAggarwal2004
Copy link

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?

@irgalamarr irgalamarr added the client related to peerjs client label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client related to peerjs client
Projects
None yet
Development

No branches or pull requests

4 participants