simonbengtsson / airdash

File sharing flutter webrtc app enabling sending files to any device from anywhere
https://airdash-project.web.app
MIT License
545 stars 109 forks source link

Connection Failed #16

Open jason-moore92 opened 1 year ago

jason-moore92 commented 1 year ago

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 commented 1 year ago

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?

jason-moore92 commented 1 year ago

in the same network, don't work

On Fri, Nov 25, 2022, 23:49 Simon Bengtsson @.***> wrote:

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?

— Reply to this email directly, view it on GitHub https://github.com/simonbengtsson/airdash/issues/16#issuecomment-1327919961, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJX6TCPV5BPN5FGVMPOUKLWKE655ANCNFSM6AAAAAASJT2S4A . You are receiving this because you authored the thread.Message ID: @.***>

jason-moore92 commented 1 year ago

BTY, what is basic network setups?

On Sat, Nov 26, 2022, 08:59 Peter Pan @.***> wrote:

in the same network, don't work

On Fri, Nov 25, 2022, 23:49 Simon Bengtsson @.***> wrote:

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?

— Reply to this email directly, view it on GitHub https://github.com/simonbengtsson/airdash/issues/16#issuecomment-1327919961, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJX6TCPV5BPN5FGVMPOUKLWKE655ANCNFSM6AAAAAASJT2S4A . You are receiving this because you authored the thread.Message ID: @.***>

simonbengtsson commented 1 year ago

Weird. What is the connection error you get?

simonbengtsson commented 1 year ago

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

jason-moore92 commented 1 year ago

Thanks for your quick response

I will attach screenshot

On Sat, Nov 26, 2022 at 12:01 AM Simon Bengtsson @.***> wrote:

Weird. What is the connection error you get?

— Reply to this email directly, view it on GitHub https://github.com/simonbengtsson/airdash/issues/16#issuecomment-1328001821, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJX6TDVJFIZQF7AGMHJDDDWKG7XNANCNFSM6AAAAAASJT2S4A . You are receiving this because you authored the thread.Message ID: @.***>

jason-moore92 commented 1 year ago

[image: image.png][image: image.png]

On Sat, Nov 26, 2022 at 12:07 AM Peter Pan @.***> wrote:

Thanks for your quick response

I will attach screenshot

On Sat, Nov 26, 2022 at 12:01 AM Simon Bengtsson @.***> wrote:

Weird. What is the connection error you get?

— Reply to this email directly, view it on GitHub https://github.com/simonbengtsson/airdash/issues/16#issuecomment-1328001821, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJX6TDVJFIZQF7AGMHJDDDWKG7XNANCNFSM6AAAAAASJT2S4A . You are receiving this because you authored the thread.Message ID: @.***>

jason-moore92 commented 1 year ago

I used this server config.

[image: image.png]

On Sat, Nov 26, 2022 at 12:09 AM Peter Pan @.***> wrote:

[image: image.png][image: image.png]

On Sat, Nov 26, 2022 at 12:07 AM Peter Pan @.***> wrote:

Thanks for your quick response

I will attach screenshot

On Sat, Nov 26, 2022 at 12:01 AM Simon Bengtsson < @.***> wrote:

Weird. What is the connection error you get?

— Reply to this email directly, view it on GitHub https://github.com/simonbengtsson/airdash/issues/16#issuecomment-1328001821, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJX6TDVJFIZQF7AGMHJDDDWKG7XNANCNFSM6AAAAAASJT2S4A . You are receiving this because you authored the thread.Message ID: @.***>

simonbengtsson commented 1 year ago

Image is not showing

jason-moore92 commented 1 year ago

sorry . Could you check email?

On Sat, Nov 26, 2022 at 3:37 AM Simon Bengtsson @.***> wrote:

Image is not showing

— Reply to this email directly, view it on GitHub https://github.com/simonbengtsson/airdash/issues/16#issuecomment-1328030090, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJX6TDS2KOLFC7UV7BVXWLWKHY7LANCNFSM6AAAAAASJT2S4A . You are receiving this because you authored the thread.Message ID: @.***>