szimek / sharedrop

Easy P2P file transfer powered by WebRTC - inspired by Apple AirDrop
https://www.sharedrop.io
MIT License
9.99k stars 729 forks source link

Doesn't work in this case #63

Open Zibri opened 6 years ago

Zibri commented 6 years ago

Phone A connected to someprovider Phone B connected to someotherprovider

Since both A and B are behind NAT, sharedrop doesn't work as it is now. But WebRTC has a mechanism for this. All you have to do is to use a TURN server with relay.

szimek commented 6 years ago

I don't think it will ever be supported, unless someone can find or sponsor a free TURN server with high enough transfer limit. It would be great to at least show an error in this case, though.

Zibri commented 6 years ago

anyone can setup such a serve using coturn on their own computer.

Also, I have found a way to always have a turn server available, but I can't discuss it here.

szimek commented 6 years ago

Feel free to create a PR that adds such option, but like I said - the hosted version of ShareDrop won't support it unless someone can provide a TURN server.

Zibri commented 6 years ago

if I want to install locally sharedrop from the source, what do I have to do? It's not clear in the readme. I just want to run a locally hosted version to do some tests.

szimek commented 6 years ago

I set it up a few years ago and haven't touch it since then, so I have no idea if it's going to work.

I think it should be enough though: