7 ms·
Show HN: Sharing, command-line tool to share files with your phone
Sharing is a command-line tool to share directory and files with ios and android devices without an extra client app
- ohadron 4y agoReally 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.
- mike97 4y agoYou can have the same with Linux/Windows and Android(not sure if iOS also has an app), using KDE Connect
- icy 4y agoTailscale’s Taildrop (https://tailscale.com/kb/1106/taildrop/ https://tailscale.com/kb/1106/taildrop/) has completely solved this problem for me.
- loeg 4y agoIs it truly Synology only?
- pkage 4y agoNo, it supports macOS/win/linux + ios/android; the docs just highlight Synology NASs first.
- joshspankit 4y agoAnd words it poorly: > Taildrop is only available on Synology with Tailscale v1.18.2 or later
- unstatusthequo 4y ago100% for this. I can send things to/from iOS to Windows trivially now. Easy, fast, and reliable.
- bbkane 4y agoNice! 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 http://localhost:5000
- jcynix 4y agoOk, 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.
- w4rh4wk5 4y agoCan you configure to the ssh server to start automatically, or do you have to launch Termux and start it manually after a reboot?
- jcynix 4y agoI 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.
- freedomben 4y agoTermux is the most underrated app I can think of. It's absolutely incredible and is one of the best "features" of android IMHO.
- jcynix 4y agoI 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/ https://exiftool.org/
- jamps 4y agoPretty cool and lightweight! I use KDE connect that allows me to have communication both ways.
- blensor 4y agoI 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
- prettyStandard 4y agoPretty happy with resilio sync... Wait... all commits were 2 hours ago?
- sva_ 4y agoIt's less than 100 lines https://github.com/parvardegr/sharing/blob/main/bin/index.js https://github.com/parvardegr/sharing/blob/main/bin/index.js
- treespace8 4y agoFor only text I use https://cl1p.net https://cl1p.net, basic but works everywhere.
- radiojasper 4y agoHey I didn't know that tool, that's very useful for me. Thanks for sharing!
- chuckdotis 4y agoThis looks identical to qrcp. https://github.com/claudiodangelis/qrcp https://github.com/claudiodangelis/qrcp
- quyleanh 4y agoSame thought. I've been using qrcp for a long time, and still prefer go rather than js.
- RupertEisenhart 4y agoI 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/ https://syncthing.net/
- dotancohen 4y agoIf 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.
- sanroot99 4y agoI made a bash script using rsync and termux notification for file syncing to my laptop
- eternityforest 4y agoThis is what I use too. Amazingly fast and very easy to use.
- rraval 4y agohttps://snapdrop.net 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 https://news.ycombinator.com/item?id=25524472
- gmiller123456 4y agoThat looks like the easiest, no installer, just a URL.
- iwebdevfromhome 4y agoFor some reason, I can't send files from iPhone -> Other devices. But text works.
- isuleman 4y agoMicrosoft Edge blocks all downloads from Snapdrop :{ I have whitelisted it countelsss times. Still it blocks images.
- sanroot99 4y agoThis uses relay server i guess ,and doesn't work in nat
- avodonosov 4y agoI 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.
- rraghur 4y agoFor me kde connect is great for this and a lot of similar purposes(clipboard sharing, sms, media controls, notifications)
- freedomben 4y agokde connect is incredible, even for people on gnome. highly recommend
- hoppyhoppy2 4y agoYou might already know this, but GSConnect is a reimplementation of KDE Connect as a GNOME Extension
- freedomben 4y agoI 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
- JeremyNT 4y agoIndeed 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!
- wazoox 4y agoYep, and you can use it seamlessly with several computer at once, I love it :)
- calvinmorrison 4y agoguilty pleasure: use WebDAV + FastMail Files for this.
- mvidal01 4y agohttps://file.pizza https://file.pizza is nice.
- boppo1 4y agoCan I use it with my Ipad?
- parvardegr 4y agoif you can scan the QR-Code with your ipad, Yes
- yewenjie 4y agoSo is this just an http server with a QR code for the link?
- parvardegr 4y agoexactly
- Phelinofist 4y agoI have an alias in my .bashrc for that: alias instashare='python3 -m http.server 8082'
- creata 4y agoIf 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 https://stackoverflow.com/a/49552792 for fetching the IP address.
- BeefWellington 4y agoI find hostname -I Generally simpler and works in the 90% case.
- lucasgonze 4y agoWhat an excellent idea. Kudos.
- andrepd 4y agoI'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.
- andirk 4y agoMuch like many applications such as Slack attempt to be the "email killer", is this the "copy-paste-into-email-to-myself killer"?
- yardshop 4y agoOP's tool looks good, I like the QRcode idea. Another useful tool in this neighborhood is Droopy: http://stackp.online.fr/?p=28 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.
- prdpx7 4y agoMade something exactly like this 2 years ago when i was learning Go. https://github.com/prdpx7/go-fileserver https://github.com/prdpx7/go-fileserver
- sanroot99 4y agoHi i got inspired your post https://news.ycombinator.com/item?id=33110574 https://news.ycombinator.com/item?id=33110574
- unraveller 4y agoyou 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.
- minhmeoke 4y agoAnother option is https://github.com/akovacs/uploadserver 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.