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

Not connecting clients from different networks #9

Closed
diegogurgel opened this issue Apr 5, 2020 · 7 comments
Closed

Not connecting clients from different networks #9

diegogurgel opened this issue Apr 5, 2020 · 7 comments
Labels
bug Something isn't working

Comments

@diegogurgel
Copy link
Owner

@diegogurgel I am having issue in video chat. When two clients connected to same network, it working fine. But having issue on connecting with different client. I am running you example code. Anything extra configuration I need to do

Originally posted by @donny08 in #7 (comment)

@diegogurgel
Copy link
Owner Author

Can you tell me where you are running it?

@AwolDes
Copy link

AwolDes commented Apr 6, 2020

From a quick look around, it looks like a STUN and/or TURN server need to be configured: https://stackoverflow.com/questions/43992334/why-my-webrtc-connection-works-only-at-local-network I can see this is already configured in simple-peer.js.

I noticed the demo won't work with separate networks either, so I'm guessing this is the missing piece of the puzzle. Maybe this is a configuration issue in the service hosting the TURN server?

@diegogurgel
Copy link
Owner Author

Yes, it can be. I'll be investigating this during this week. Last week it was possible to do a call Poland-Korea. Something stopped working or got updated. I also considering that I am using free stun and turn servers and right now the use of those servers have increased

@diegogurgel
Copy link
Owner Author

I'm noticing the same problem with other webrtc demos out there.

@donny08
Copy link

donny08 commented Apr 6, 2020

Can you tell me where you are running it?

I'm running on heroku

@diegogurgel
Copy link
Owner Author

Can you tell me where you are running it?

I'm running on heroku

Yes I'm having the same problem but I think that is something related to turn and stun server not with the application itself. I also asked about that on simple-peer repository because I saw that other applications are having the same problem.

@diegogurgel diegogurgel added the bug Something isn't working label Apr 7, 2020
@diegogurgel
Copy link
Owner Author

I was able to solve it by testing my stun and turn servers here https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/
in my case, I was getting unauthorized. I just created a new turn user 😅

I deployed the updated version check it out
https://react-webrtc-build.dgurgel.now.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants