snapdrop icon indicating copy to clipboard operation
snapdrop copied to clipboard

How can i use Snapdrop outside my local network

Open poltrian opened this issue 1 year ago • 2 comments

Is it possible to use snapdrop outside of the local network? When I'm outside of my local network, I can see the users, but I can't send any files. These will not be sent. I have a Docker installation

poltrian avatar Jul 19 '22 07:07 poltrian

It's not really possible, no. Snapdrop is mainly designed to send stuff across local networks using peer-to-peer connections. Client identification is a more centralised process, which is probably why you can still see other users on your self-hosted instance despite not being on the same network, but the actual data transmission is entirely P2P.

Setting up Snapdrop to transmit across the Internet would likely involve adding support for some kind of relay system a la STUN/TURN. This might be possible to implement as an optional feature maybe, but hosting public services with a relay enabled would be significantly more expensive than the current local-only version of Snapdrop.

TheGentleChainsaw avatar Jul 25 '22 01:07 TheGentleChainsaw

Simply adding a turn server to the configuration in network.js will make snapdrop worldwide usable, with a cost of a self-hosted TURN server.

snowie2000 avatar Oct 08 '22 03:10 snowie2000