News for hackers. Stuff that matters.
Re:Show HN: Sharing, command-line tool to share files with y... by rraval on Wednesday October 05, 2022 @10:49AM (#33096270)
https://snapdrop.net is my go to for this. Works on any modern browser on the same LAN. Supports files and plain text.

Previous HN discussion: https://news.ycombinator.com/item?id=25524472

Re:Show HN: Sharing, command-line tool to share files with y... by iwebdevfromhome on Wednesday October 05, 2022 @12:03PM (#33097281)
For some reason, I can't send files from iPhone -> Other devices. But text works.
Re:Show HN: Sharing, command-line tool to share files with y... by gmiller123456 on Wednesday October 05, 2022 @11:13AM (#33096601)
That looks like the easiest, no installer, just a URL.
Re:Show HN: Sharing, command-line tool to share files with y... by isuleman on Thursday October 06, 2022 @08:39AM (#33107490)
Microsoft Edge blocks all downloads from Snapdrop :{ I have whitelisted it countelsss times. Still it blocks images.
Re:Show HN: Sharing, command-line tool to share files with y... by sanroot99 on Thursday October 06, 2022 @10:50AM (#33108926)
This uses relay server i guess ,and doesn't work in nat
Re:Show HN: Sharing, command-line tool to share files with y... by icy on Wednesday October 05, 2022 @09:28AM (#33095299)
Tailscale’s Taildrop (https://tailscale.com/kb/1106/taildrop/) has completely solved this problem for me.
Re:Show HN: Sharing, command-line tool to share files with y... by loeg on Wednesday October 05, 2022 @10:48AM (#33096250)
Is it truly Synology only?
Re:Show HN: Sharing, command-line tool to share files with y... by pkage on Wednesday October 05, 2022 @10:51AM (#33096296)
No, it supports macOS/win/linux + ios/android; the docs just highlight Synology NASs first.
Re:Show HN: Sharing, command-line tool to share files with y... by joshspankit on Wednesday October 05, 2022 @09:33PM (#33103301)
And words it poorly:

> Taildrop is only available on Synology with Tailscale v1.18.2 or later

Re:Show HN: Sharing, command-line tool to share files with y... by unstatusthequo on Thursday October 06, 2022 @07:32AM (#33106928)
100% for this. I can send things to/from iOS to Windows trivially now. Easy, fast, and reliable.
Re:Show HN: Sharing, command-line tool to share files with y... by RupertEisenhart on Wednesday October 05, 2022 @10:35AM (#33096092)
I use Syncthing[0] for continuous file synchronization to/from my phone, its pretty nifty. Way more memory-heavy than something like this though.

[0] https://syncthing.net/

Re:Show HN: Sharing, command-line tool to share files with y... by dotancohen on Wednesday October 05, 2022 @10:52AM (#33096316)
If you're already using Telegram, you can use the Saved Messages pseudochat to transfer text and files between the phone and desktop. Telegram has an excellent desktop client.
Re:Show HN: Sharing, command-line tool to share files with y... by SXX on Thursday October 06, 2022 @03:02AM (#33105304)
Just make sure to be aware that such "sync" via Telegram is not to be used for anything important as it's not E2E encrypted.
Re:Show HN: Sharing, command-line tool to share files with y... by fgeiger on Wednesday October 05, 2022 @11:47AM (#33097078)
Signal has the "Note to self" chat which works the same ... Except for the cloud sync that Telegram has. Signal only syncs between your clients.
Re:Show HN: Sharing, command-line tool to share files with y... by sanroot99 on Thursday October 06, 2022 @10:54AM (#33108976)
I made a bash script using rsync and termux notification for file syncing to my laptop
Re:Show HN: Sharing, command-line tool to share files with y... by eternityforest on Thursday October 06, 2022 @01:15PM (#33111065)
This is what I use too. Amazingly fast and very easy to use.
Re:Show HN: Sharing, command-line tool to share files with y... by chuckdotis on Wednesday October 05, 2022 @10:16AM (#33095860)
This looks identical to qrcp.

https://github.com/claudiodangelis/qrcp

Re:Show HN: Sharing, command-line tool to share files with y... by quyleanh on Wednesday October 05, 2022 @10:54AM (#33096351)
Same thought. I've been using qrcp for a long time, and still prefer go rather than js.
Re:Show HN: Sharing, command-line tool to share files with y... by treespace8 on Wednesday October 05, 2022 @10:02AM (#33095705)
For only text I use https://cl1p.net, basic but works everywhere.
Re:Show HN: Sharing, command-line tool to share files with y... by radiojasper on Wednesday October 05, 2022 @10:11AM (#33095809)
Hey I didn't know that tool, that's very useful for me. Thanks for sharing!
Re:Show HN: Sharing, command-line tool to share files with y... by jcynix on Wednesday October 05, 2022 @09:45AM (#33095513)
Ok, nice idea with the qrcode, but (as far I can tell from a quick view into the source) it uses plain http?

On Android I'm happy with the apps I use anyway, e.g. Termux which offers ssh (both client and server), rsync, … or sftp via Solid Explorer.

Re:Show HN: Sharing, command-line tool to share files with y... by w4rh4wk5 on Wednesday October 05, 2022 @09:48AM (#33095546)
Can you configure to the ssh server to start automatically, or do you have to launch Termux and start it manually after a reboot?
Re:Show HN: Sharing, command-line tool to share files with y... by jcynix on Wednesday October 05, 2022 @09:59AM (#33095668)
I can execute Termux scripts at boot time (via a secondary app Termux:Boot), which would execute files in ~/.termux/boot/so yes. And you have your standard shell init files, so just opening Termux allows you to implement actions.
Re:Show HN: Sharing, command-line tool to share files with y... by freedomben on Wednesday October 05, 2022 @12:44PM (#33097880)
Termux is the most underrated app I can think of. It's absolutely incredible and is one of the best "features" of android IMHO.
Re:Show HN: Sharing, command-line tool to share files with y... by jcynix on Wednesday October 05, 2022 @02:49PM (#33099700)
I 100% agree, Termux shows, what a useful tool a smartphone can be. Do I need an app to look at the EXIF of a photo? No, I just use Phil Harvey's excellent exiftool[1] in the shell. Resize or rotate an image? Or even a number of images? Imagemagick does the job. The power of the command line in your hand ;-)

[1] https://exiftool.org/

Re:Show HN: Sharing, command-line tool to share files with y... by rraghur on Wednesday October 05, 2022 @11:41AM (#33097003)
For me kde connect is great for this and a lot of similar purposes(clipboard sharing, sms, media controls, notifications)
Re:Show HN: Sharing, command-line tool to share files with y... by JeremyNT on Wednesday October 05, 2022 @02:12PM (#33099140)
Indeed KDE Connect is a robust and secure way to share files (and it has many other features as well). I wish more people knew about it!
Re:Show HN: Sharing, command-line tool to share files with y... by wazoox on Wednesday October 05, 2022 @03:51PM (#33100464)
Yep, and you can use it seamlessly with several computer at once, I love it :)
Re:Show HN: Sharing, command-line tool to share files with y... by freedomben on Wednesday October 05, 2022 @12:42PM (#33097848)
kde connect is incredible, even for people on gnome. highly recommend
Re:Show HN: Sharing, command-line tool to share files with y... by hoppyhoppy2 on Wednesday October 05, 2022 @07:57PM (#33102733)
You might already know this, but GSConnect is a reimplementation of KDE Connect as a GNOME Extension
Re:Show HN: Sharing, command-line tool to share files with y... by freedomben on Thursday October 06, 2022 @12:23PM (#33110298)
I had a pretty tough time getting GSConnect to work, and consistently. The KDE Connect GUI is pretty clumsy on Gnome, but it works reliably and supports every feature. I do hope GSConnect can get better though
Re:Show HN: Sharing, command-line tool to share files with y... by jamps on Wednesday October 05, 2022 @09:49AM (#33095555)
Pretty cool and lightweight! I use KDE connect that allows me to have communication both ways.
Re:Show HN: Sharing, command-line tool to share files with y... by blensor on Wednesday October 05, 2022 @10:52AM (#33096308)
I am also happy with kdeconnect, although I am not sure if I have set everything up correctly. I am un xfce and every once in a while use the kdeconnect cli to pair my phone, then I never think about it and just share my files to the downloads folder or copy paste something from the clipboard
Re:Show HN: Sharing, command-line tool to share files with y... by bbkane on Wednesday October 05, 2022 @09:31AM (#33095335)
Nice! I used to do something similar with:

   python -m http.server
And a dns -> http record Namecheap which sent traffic from books.bbkane.com to http://localhost:5000
Re:Show HN: Sharing, command-line tool to share files with y... by avodonosov on Wednesday October 05, 2022 @11:17AM (#33096642)
I just use primitive-ftpd android app - then connect to the phone from computer with the standard file browser in my OS and copy what I need in both directions.
Re:Show HN: Sharing, command-line tool to share files with y... by ohadron on Wednesday October 05, 2022 @09:03AM (#33095009)
Really cool. One of my favorite things about iOS+MacOS is the ability to copy/paste between devices, but I can think of a bunch of use cases where this would be even better.
Re:Show HN: Sharing, command-line tool to share files with y... by mike97 on Wednesday October 05, 2022 @11:01AM (#33096434)
You can have the same with Linux/Windows and Android(not sure if iOS also has an app), using KDE Connect
Re:Show HN: Sharing, command-line tool to share files with y... by yardshop on Wednesday October 05, 2022 @07:19PM (#33102442)
OP's tool looks good, I like the QRcode idea.

Another useful tool in this neighborhood is Droopy: http://stackp.online.fr/?p=28

It's a Python script that runs a simple web server with some nice options.

I used it to copy a gigantic video file from my phone to my old Windows machine that other methods choked on.

Re:Show HN: Sharing, command-line tool to share files with y... by prettyStandard on Wednesday October 05, 2022 @09:50AM (#33095563)
Pretty happy with resilio sync...

Wait... all commits were 2 hours ago?

Re:Show HN: Sharing, command-line tool to share files with y... by sva_ on Wednesday October 05, 2022 @10:22AM (#33095939)
Re:Show HN: Sharing, command-line tool to share files with y... by andirk on Wednesday October 05, 2022 @03:26PM (#33100181)
Much like many applications such as Slack attempt to be the "email killer", is this the "copy-paste-into-email-to-myself killer"?
Re:Show HN: Sharing, command-line tool to share files with y... by Phelinofist on Wednesday October 05, 2022 @01:36PM (#33098664)
I have an alias in my .bashrc for that:

  alias instashare='python3 -m http.server 8082'
Re:Show HN: Sharing, command-line tool to share files with y... by creata on Wednesday October 05, 2022 @09:07PM (#33103146)
If you have qrencode on your system, you can also print a QR code with

    echo "http://$(ip route get 1 | sed -n 's/.*src \([0-9.]\+\).*/\1/p'):8082" | qrencode -t UTF8 -o -
Credit to https://stackoverflow.com/a/49552792 for fetching the IP address.
Re:Show HN: Sharing, command-line tool to share files with y... by BeefWellington on Wednesday October 05, 2022 @10:56PM (#33103813)
I find

    hostname -I 
Generally simpler and works in the 90% case.
Re:Show HN: Sharing, command-line tool to share files with y... by mvidal01 on Wednesday October 05, 2022 @12:34PM (#33097706)
Re:Show HN: Sharing, command-line tool to share files with y... by lucasgonze on Wednesday October 05, 2022 @02:48PM (#33099686)
What an excellent idea. Kudos.
Re:Show HN: Sharing, command-line tool to share files with y... by boppo1 on Wednesday October 05, 2022 @01:09PM (#33098278)
Can I use it with my Ipad?
Re:Show HN: Sharing, command-line tool to share files with y... by yewenjie on Wednesday October 05, 2022 @01:11PM (#33098308)
So is this just an http server with a QR code for the link?
Re:Show HN: Sharing, command-line tool to share files with y... by andrepd on Wednesday October 05, 2022 @03:02PM (#33099875)
I've had amazing results with Warpinator, especiall when it comes to non-techies. No more ferrying files over pen drive or "wetransfer"-like services. As long as you're all on the same LAN, just drag and drop.
Re:Show HN: Sharing, command-line tool to share files with y... by calvinmorrison on Wednesday October 05, 2022 @11:46AM (#33097063)
guilty pleasure: use WebDAV + FastMail Files for this.
Re:Show HN: Sharing, command-line tool to share files with y... by prdpx7 on Thursday October 06, 2022 @08:50AM (#33107581)
Made something exactly like this 2 years ago when i was learning Go. https://github.com/prdpx7/go-fileserver
Re:Show HN: Sharing, command-line tool to share files with y... by sanroot99 on Thursday October 06, 2022 @12:43PM (#33110620)
Re:Show HN: Sharing, command-line tool to share files with y... by unraveller on Friday October 07, 2022 @06:14AM (#33119371)
you can also send a single small file without installing anything thanks to these free services.

  curl -s https://qrcode.show -d https://patchbay.pub/yourname/openshare && curl https://patchbay.pub/yourname/openshare --data-binary @./test.jpg
Highlight the qrcode text to invert colors.

If your console prints artefacts add -H "X-QR-EC-Level: H" or -H "Accept: image/jpeg" > qr.jpg && qr.jpg to open in image viewer.

Re:Show HN: Sharing, command-line tool to share files with y... by minhmeoke on Saturday October 08, 2022 @09:42PM (#33137614)
Another option is https://github.com/akovacs/uploadserver which is a Rust (Rocket) web server that you can run on a local Windows, Mac or Linux machine. Open a browser and navigate to the machine's IP address at port 8000 to upload/download files from the web form. Works on a LAN or Wifi network without any Internet access.

Disclaimer: I know the author.