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

Different networks #9

Closed mertushka closed 1 year ago

mertushka commented 2 years ago

Do the devices have to be on the same network?

I think this is a very restrictive thing. As an example;

PC: WiFi 2.4GHZ MOBILE: WiFi 5GHZ

File transfer between these devices should be possible.

simonbengtsson commented 2 years ago

Should work no matter what network connected to. The only requirement is internet connection.

mertushka commented 2 years ago

Should work no matter what network connected to. The only requirement is internet connection.

There is something not working then, can you check your sentry logs?

Screenshot_1

simonbengtsson commented 2 years ago

Checked the error in both sentry and code and it is a timeout error and basically means that the receiving device could not be reached so the transfer was cancelled after trying for 10 seconds. The sending device is successfully connected (otherwise a different error is shown). I've not been able to pin point the error exactly yet but I have noticed that in rare instances I have needed to restart the app on the receiving device for it to work.

Note that there has been 20 or so successful transfer on windows in the last couple of days (looking at the mixpanel dashboard linked from readme) so this issue is likely not specific to Windows.

Rihcus commented 1 year ago

Do the devices have to be on the same network?

I think this is a very restrictive thing. As an example;

PC: WiFi 2.4GHZ MOBILE: WiFi 5GHZ

File transfer between these devices should be possible.

Are you on a home network where you can directly connect to the local IP of other devices? Also do you find snapdrop having similar issues (uses similar webrtc). Webrtc works in most cases however if you have a overly restrictive network that doesn't allow connection of local ips and blocks p2p connections its possible you may run into issues since airdash doesn't appear to have a TURN relay server setup (basically it bridges the connection between to restrictive networks via a intermediate server).

simonbengtsson commented 1 year ago

Airdash actually uses a hosted turn server from Twilio so it should work no matter the network config.

simonbengtsson commented 1 year ago

Things have changed in recent releases regarding file transfers. Will close this issue now but feel free to create a new issue if the issue persist.