Previous HN discussion: https://news.ycombinator.com/item?id=25524472
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.
alias instashare='python3 -m http.server 8082' 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. hostname -I
Generally simpler and works in the 90% case.Wait... all commits were 2 hours ago?
https://github.com/parvardegr/sharing/blob/main/bin/index.js
python -m http.server
And a dns -> http record Namecheap which sent traffic from books.bbkane.com to http://localhost:5000Disclaimer: I know the author.
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.
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.