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
  • Lettuce eat lettuce@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    23 days ago

    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.

  • arthurpizza@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    22 days 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.

  • one_knight_scripting@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    21 days ago

    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.

  • JASN_DE@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    23 days ago

    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.

    • vext01@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      23 days ago

      Well my transfers aren’t “time critical” either, but life feels easier if I don’t have to jump through hoops to solve a task that involves copy files around.

      Re: next cloud, looking for something more lightweight than that.

  • Deckweiss@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    23 days ago

    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.

    • vext01@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      23 days ago

      pairdrop

      I like this a lot.

      A question. Docs say:

      Your files are sent using WebRTC, encrypting them in transit. Still you have to trust the PairDrop server. To ensure the connection is secure and there is no MITM there is a plan to make PairDrop zero trust by encrypting the signaling and implementing a verification process. See issue #180 to keep updated.

      Does this mean if you self-host on your LAN for personal use without https, then nothing is encrypted, or does WebRTC negotiate its own crypto?

  • haverholm@kbin.earth
    link
    fedilink
    arrow-up
    0
    ·
    23 days ago

    I’ve tried LocalSend for this, but I usually end up using more reliable ways like Syncthing (not instantly transfered, but at a decent speed) or sending myself the file on Element for Matrix (as good as instantaneous).

  • EvilHaitianEatingYourCat@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    22 days ago

    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
      link
      fedilink
      English
      arrow-up
      0
      ·
      22 days ago

      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.

  • Fuzzypyro@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    23 days ago

    Taildrop works relatively well for most all circumstances. Only thing is you gotta use trayscale or cli currently for sending files from a Linux/bsd machine. I don’t know if opened has a port for trayscale but it definitely has a port of tailscale.

  • Darkassassin07@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    23 days ago

    Ssh and X-Plore File Explorer.

    Internal, sd card, ssh, ftp(s), google drive, dropbox, and a bunch of other cloud providers; treats it all like one big file system that I can casually copy/move files between.

    • vext01@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      23 days ago

      I was a dedicated xplore user for years until I saw all the advertising cookies that they stuffed into it. That made me sad and I uninstall it.

      • Darkassassin07@lemmy.ca
        link
        fedilink
        English
        arrow-up
        0
        ·
        23 days ago

        I just paid the whole 4$ for the pro version and to support an otherwise free app I’ve quite enjoyed.

        No ads/tracking anymore.

        Devs gotta eat.

        • vext01@lemmy.sdf.orgOP
          link
          fedilink
          English
          arrow-up
          0
          ·
          23 days ago

          I also had the pro version. Last time I installed it, it asked me to review a bunch of cookies.

          This was about a year ago. Could have changed since then.

  • waldek@lemmy.86thumbs.net
    link
    fedilink
    English
    arrow-up
    0
    ·
    23 days ago

    I often spin up a quick python http server. Just go to the folder which has the files you want to transfer and run the following command: python3 -m http.server. This will server the folder content Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) .... On your phone you can then browse to http://PC_IP:8000 and download what you want/need.

  • electric_nan@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    22 days ago

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

    • rumba@lemmy.zip
      link
      fedilink
      English
      arrow-up
      0
      ·
      22 days ago

      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
        link
        fedilink
        English
        arrow-up
        0
        ·
        22 days ago

        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
          link
          fedilink
          English
          arrow-up
          0
          ·
          22 days 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.