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 Failed #16

Open
peterpan896778 opened this issue Nov 24, 2022 · 10 comments
Open

Connection Failed #16

peterpan896778 opened this issue Nov 24, 2022 · 10 comments

Comments

@peterpan896778
Copy link

Hello sir.
I cloned your git on my PC and replace firebase configuration and run the project.
The project is running successfully.
After paring two devices, when send file, I am getting connection error.

When create my firestore, I don't know about collection data.
so, I used the below json to set simple_peer settings.

 {
    "provider": "google",
    'iceServers': [
      {'url': 'stun:stun.l.google.com:19302'},
    ],
  }

I don't know what is issue.

Could you help me to run the project successfully?

Thank you

@simonbengtsson
Copy link
Owner

The simple peer library should work without setting any config. The default stun server only works on basic network setups however. Does it work if the devices are on the same network?

@simonbengtsson simonbengtsson added the question Usage or code question etc label Nov 25, 2022
@peterpan896778
Copy link
Author

peterpan896778 commented Nov 26, 2022 via email

@peterpan896778
Copy link
Author

peterpan896778 commented Nov 26, 2022 via email

@simonbengtsson
Copy link
Owner

Weird. What is the connection error you get?

@simonbengtsson
Copy link
Owner

Regarding basic network setup -> I'm not entirely sure of when a turn server is needed and when stun is enough. Here is some more information: https://stackoverflow.com/a/65097630/827047

There are temporary free turn server you can try such as those listed here https://gist.github.com/sagivo/3a4b2f2c7ac6e1b5267c2f1f59ac6c6b

@peterpan896778
Copy link
Author

peterpan896778 commented Nov 26, 2022 via email

@peterpan896778
Copy link
Author

peterpan896778 commented Nov 26, 2022 via email

@peterpan896778
Copy link
Author

peterpan896778 commented Nov 26, 2022 via email

@simonbengtsson
Copy link
Owner

Image is not showing

@peterpan896778
Copy link
Author

peterpan896778 commented Nov 28, 2022 via email

@simonbengtsson simonbengtsson added needs-info and removed question Usage or code question etc labels Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants