this post was submitted on 30 Jan 2025
108 points (96.6% liked)

Selfhosted

41598 readers
396 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hey,

I was wondering what folks use to quickly send a file or a link between your PC and android phone in a lightweight and self hosted way.

Currently I use syncthing to copy files around, but I'm looking for something more immediate, and quick than doesn't involve searching for folders in a file manager.

Example use case: Send a file from PC to phone. Notification pops up on phone, tap it to access.

(PC runs OpenBSD)

What lightweight software do you guys use?

Stuff I tried so far:

  • syncthing
  • xmpp
  • tox
  • scp and termux.
  • magic wormhole
  • telegram saved messages
top 50 comments
sorted by: hot top controversial new old
[–] one_knight_scripting@lemmy.world 1 points 12 hours ago* (last edited 12 hours ago) (1 children)

Do you have any hosting in your home lab? Preferably something for running a docker container, but a hypervisor could do the job too.

Nextcloud is an option if you do. Technically speaking you could properly protect it and make it public. You don't have to do that though. Any file you upload on your computer could be copied to your phone or vice versa. If it's public, then this could be done from anywhere.

[–] vext01@lemmy.sdf.org 1 points 11 hours ago

Yes, I have a Linux vm for docker. I've chucked up a pairdrop container. So easy.

[–] thatradomguy@lemmy.world 1 points 15 hours ago
[–] Tiger_Man_@lemmy.blahaj.zone 1 points 16 hours ago
[–] Tiger_Man_@lemmy.blahaj.zone 1 points 16 hours ago
[–] electric_nan@lemmy.ml 9 points 1 day ago (1 children)

I use KDEConnect. I don't know about iPhone but it works with Android, Linux and Windows.

[–] rumba@lemmy.zip 3 points 1 day ago (1 children)

I have tried to use KDEconnect over and over, It doesn't work on my work network, it doesn't work on most of my home network, If my laptop my cell phone come up as different IPs it gets confused. It's discoverability is just absolutely horrible except for a select number of plain vanilla networks.

[–] electric_nan@lemmy.ml 2 points 1 day ago (1 children)

Damn that sucks :(. Seems to me I have to disable my VPN in order to discover devices, but I can re-enable it afterwards. I use it mostly for clipboard sharing between devices.

[–] rumba@lemmy.zip 3 points 1 day ago

My home network is split between wired and wireless, they're on different IP ranges. I have every proper forwarding protocol and UDP sniffing everything set up so that devices can talk to each other across subnets.

It refuses.

So at home I can set it up on Linux to use a static IP to find my phone. And the phone kind of deals with it and works most of the time. But then I go to work and my IPs are the two devices change. Then I'm SOL.

Also if I'm home and I'm roaming onto one of my other networks to talk to security cameras or something it's incapable of talking to my PC.

Honestly it's discovery is just bad for me. I really wish that it's supported a list of IPs, or gave me some kind of client I could run in concert with tail scale or I could move s*** around it's just absolutely inflexible and for no good reason.

[–] art@lemmy.world 2 points 20 hours ago

Open source file manager Material Files lets you set an SSH server as a bookmark and mount it instantly. Moving files around just like like it's native. Works seamlessly through Tailscale.

[–] kSPvhmTOlwvMd7Y7E@lemmy.world 1 points 20 hours ago (1 children)

I ll just hijack this thread : when plugging my android into laptop, the laptop doesn't recognise it as anything. And the phone doesn't give me the option to "share files" instead of just charge. Does anyone knows what's wrong?

[–] qwerty@discuss.tchncs.de 7 points 20 hours ago (1 children)

Check if your cable has data lanes, some cables don't have them and can only be used for charging. Tap the charging notification and check if you can change it to file transfer.

[–] uranibaba@lemmy.world 2 points 18 hours ago

Had the same issue before, cable was the cause.

[–] terminhell@lemmy.dbzer0.com 5 points 1 day ago (2 children)

I mean, the fastest method is likely to just plug the phone into PC and pretend it's a flash drive?

[–] Hawk@lemmynsfw.com 5 points 1 day ago (1 children)

From memory MTP is pretty flaky and quite slow.

ADB push is pretty good but at that stage rsync is just as easy.

Put SSH in the phone and you can do it all from the computer too.

[–] rumba@lemmy.zip 1 points 1 day ago (1 children)

MTP's not bad anymore. It works perfectly well in Windows Linux and Mac these days and is as fast as anything else.

[–] Hawk@lemmynsfw.com 1 points 23 hours ago

Oh good to know.

It used to be awful but I'm glad to hear it's improving.

[–] ChapulinColorado@lemmy.world 1 points 1 day ago

I don’t know if it is always the fastest. I know they said android, but for example on not too old Apple phones (pre-usb c), I had the impression you could get better throughout on wifi compared to a cable connection. Maybe that’s just apple trying to squeeze money on proprietary connectors, but other manufacturers seem to copy their worst takes sometimes though.

[–] coper@lemmy.dbzer0.com 1 points 20 hours ago

I use ADBFileManager https://github.com/T0biasCZe/AdbFileManager/ which is much faster than MTP

In my testing, the program copies files at speed of approximately 41.6MiB/s (332Mib/s) over USB 2.0, compared to MTP that copies at around 10Mb/s

[–] Kolanaki@yiffit.net 3 points 1 day ago

For a single file, I just use Bluetooth. For a lot of files, or a really big file, I plug my phone into the PC and set it to storage device.

[–] qwerty@discuss.tchncs.de 7 points 1 day ago
[–] FaceButt9000@lemmy.world 1 points 1 day ago

For single files, I use qrcp

[–] nichtburningturtle@feddit.org 38 points 2 days ago (3 children)

I usually use kde connect.

[–] klangcola@reddthat.com 11 points 1 day ago (1 children)

KDE Connect also works on Gnome, Windows and Android. I can't recommend it enough. Transfering a single image from phone to PC is instantaneous

[–] needanke@feddit.org 4 points 1 day ago

And having a unified clippboard is just so convenient

[–] Toribor@corndog.social 2 points 1 day ago

I use a Gnome implementation of this and it works great too.

[–] cyberwolfie@lemmy.ml 3 points 1 day ago

Yeah, me too. It is quick and easy. I use SyncThing for things I want to keep synced.

[–] Lettuceeatlettuce@lemmy.ml 48 points 2 days ago (1 children)

I love localsend.

Works on Linux, Android, iOS, Windows, and Mac. It is basically an OS agnostic Airdrop.

It's FOSS, so you can go to the Github and build from source for OpenBSD, but I have no idea if that would work.

[–] vext01@lemmy.sdf.org 4 points 2 days ago (2 children)

Dart (the language it's written in) doesn't work on BSD, so sadly that's out of the question for now.

[–] Hawk@lemmynsfw.com 1 points 1 day ago

Maybe snapdrop?

When I was obsd I did FTP and rsync for everything. Syncthing had dinner performance issues for me.

Maybe Seafile but I had a bad time with that.

[–] Lettuceeatlettuce@lemmy.ml 4 points 2 days ago

Dang, that's too bad. Hopefully one day!

[–] vinnymac@lemmy.world 45 points 2 days ago* (last edited 2 days ago) (4 children)

Here are a bunch of local services I’ve used at one point or another from phone to PC or PC to PC. Not sure if any links are out of date.

KDE Connect

Wormhole (Closed Source)

LocalSend

SnapDrop

ShareDrop

FilePizza

Original Wormhole

PeerTransfer

JustBeamIt

Send Visee

[–] Voroxpete@sh.itjust.works 22 points 2 days ago (1 children)

+1 for LocalSend. Well worth checking out.

[–] Arkhive@lemmy.blahaj.zone 8 points 2 days ago

Another +1 for it here. Use it multiple times a day between Linux, MacOS, android, and iOS.

[–] happinessattack@lemmy.world 16 points 2 days ago

+1 KDE Connect. File transfer works great on Android, Linux, and even on Windows 10/11! Clipboard sync is also a game changer; super easy to copy and paste across devices.

[–] reddwarf@feddit.nl 6 points 2 days ago

+1 Love LocalSend!

load more comments (1 replies)
[–] vividspecter@lemm.ee 1 points 1 day ago

I'll add in Bitwarden Send (including self-hosted vaultwarden), although probably doesn't make sense if you're not already using it for password management.

[–] hendrik@palaver.p3x.de 23 points 2 days ago* (last edited 2 days ago) (1 children)

Kdeconnect. Alternatively NextCloud or sending an email to myself.

[–] sem@lemmy.blahaj.zone 3 points 23 hours ago* (last edited 23 hours ago)

Seconding sending an email. SMB for big stuff.

[–] 0x0@programming.dev 2 points 1 day ago
[–] deadcatbounce@reddthat.com 5 points 2 days ago* (last edited 2 days ago)

Syncthing is fast. I have an IPv6 setup too which seems to help.

I have my downloads directory on my desktop linked to a downloads directory on my Android; you can't link to the real Android downloads directory anymore so I use another.

When the file is removed from the desktop downloads directory it disappears from mobile.

I tried using Bluetooth between them but it's more fiddly than Syncthing with my config. Switch Bluetooth on on desktop, connect to desktop, send file, disconnect, move file. Whereas Syncthing is always on.

However, before I started using Obsidian notes I used to transfer URLs using Signal's Note-to-self thing. Signal on both desktop and mobile.

Obviously, I sync between mobile and desktop Obsidian using Syncthing.

[–] Deckweiss@lemmy.world 12 points 2 days ago* (last edited 2 days ago) (3 children)

https://pairdrop.net/

open source, can be self hosted or you can use the official instance.


Personally I have been using KDE connect most of the time when I am at home.

Pairdrop I use more when sharing with other people across the internet.

load more comments (3 replies)
[–] LodeMike@lemmy.today 3 points 1 day ago* (last edited 1 day ago)

SFTP or Matrix

[–] MangoPenguin@lemmy.blahaj.zone 11 points 2 days ago (2 children)

Localsend works great for me.

load more comments (2 replies)
[–] g_damian@lemmy.world 2 points 1 day ago

I'm not sure if there's one the best tool, depending on a case, I use mix of

[–] jet@hackertalks.com 8 points 2 days ago (5 children)

Kde connect is also a option

load more comments (5 replies)
[–] JASN_DE@lemmy.world 6 points 2 days ago (1 children)

As I have basically all devices connected to my Nextcloud instance, I simply use that. I don't have any "time-critical" file transfers though.

load more comments (1 replies)
[–] lka1988@sh.itjust.works 5 points 2 days ago

FX File Explorer has a local web-access feature. Start it on your phone and access via local IP, then just turn it off when you're done.

Don't use on public wifi, it's http-only.

load more comments
view more: next ›