this post was submitted on 20 Apr 2024
20 points (100.0% liked)

Open Source

30218 readers
368 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
 

Peer-to-peer file transfers in your browser Cooked up by Alex Kern & Neeraj Baid while eating Sliver @ UC Berkeley.

Using WebRTC, FilePizza eliminates the initial upload step required by other web-based file sharing services. When senders initialize a transfer, they receive a "tempalink" they can distribute to recipients. Upon visiting this link, recipients' browsers connect directly to the sender’s browser and may begin downloading the selected file. Because data is never stored in an intermediary server, the transfer is fast, private, and secure. (Your PC must be online while the recipient download the file(s), if you shutdown the PC or goes offline, the download also stops)

You can selfhost it or use the official instance

https://github.com/kern/filepizza

top 22 comments
sorted by: hot top controversial new old
[–] [email protected] 8 points 5 months ago

(Your PC must be online while the recipient download the file(s), if you shutdown the PC or goes offline, the download also stops)

...yeah?. crazy. What'll they think of next?

[–] [email protected] 5 points 5 months ago (1 children)

I created my own similar tool: https://filepush.kevincox.ca/

It is optimized for the case where you commonly send files to the same devices. For example I have set up all of my devices as well as my partner's phone and Steam Deck. Then I can just tap them and send the file with end-to-end encryption.

It is sort of cool that there is no backing server, just static files. All of the signalling goes over WebPush.

[–] [email protected] 1 points 5 months ago

If you are talking about WebPush, technically the browser company provides the backing server

[–] [email protected] 4 points 5 months ago (1 children)
[–] [email protected] 1 points 5 months ago

Yes, there are several p2p apps. Some years ago I used O&O FileDirect, which is very good, free, private (by deinition in this type o sharing), fast and easy to handle, but it's proprietary soft by an German company and Windows only.

[–] [email protected] 2 points 5 months ago (5 children)

Only somewhat related, but is there an easy tool for sending files from one device to another when on the same network? I imagine that scenario shouldn't need some third party server to connect to but I've yet to find a tool like this.

[–] [email protected] 4 points 5 months ago (1 children)

Much simpler and more direct than the other suggestions: LocalSend.

Also fully open source, local only, cross platform. Only works in the same network, obviously. That's the point.

[–] [email protected] 2 points 5 months ago

This seems to work like a charm! It even sends folders and everything :)

[–] [email protected] 3 points 5 months ago (1 children)

KDE Connect should fit the bill; despite the name, you don't need to be using KDE (or Linux even) since there are clients for every major OS, even mobile.

Among many other cool features, it lets you easily and simply just send a file from one device directly to another on your local network. I use it all the time to send photos from my phone to my desktop without plugging anything in, for example.

[–] [email protected] 1 points 5 months ago (1 children)

Looks nice but I don't seem to be able to send whole folders, just individual files :/

[–] [email protected] 1 points 5 months ago (1 children)

Maybe .zip, .7z or .rar would help here?

[–] [email protected] 2 points 5 months ago

That's too much effort to send a folder, especially as I also need to extract on the destination too.

I went with LocalSend instead, it sends folders like a charm :)

[–] [email protected] 2 points 5 months ago

Others told about snapdrop, sharedrop, localsend etc.

But depending on what devices you are talking about, you might do with just an http server.

I have a file manager on my (android) phone with a http server built in, and my laptop is connected to it via WiFi hotspot all the time. I just start a server on my phone and use a browser or any other download tool (curl, wget) to transfer files from my phone to my laptop.

If you have python installed, you can run an http server on any device you have (for example, a laptop) via python -m http.server and access your files from any other device on the same network by manually typing your local IP into a browser.

[–] [email protected] 1 points 5 months ago

I think ShareDrop does that.

[–] [email protected] 0 points 5 months ago (1 children)

Android devices have this function natively built in

[–] [email protected] 0 points 5 months ago (1 children)
[–] [email protected] 0 points 5 months ago (1 children)

I think it's called Nearby Share. If you click "share" on a particular file, the option to share to a nearby device appears using Nearby Share.

[–] [email protected] 0 points 5 months ago (1 children)

Hmm I think that works based on Bluetooth. I want it to work based on the network, as some of my PCs don't have bluetooth. LocalSend works fine though.

[–] [email protected] -1 points 5 months ago

Oh got it 👍🏻

[–] [email protected] 2 points 5 months ago

Why yet another alternative to magic wormhole? Instead that could get a better web interface.

[–] [email protected] 2 points 5 months ago

you wouldn't download a pizza

[–] [email protected] 1 points 5 months ago

What's the difference to pairdrop or snapdrop?