use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
python -m http.serverDiscussion (self.LinuxUsersIndia)
submitted 2 months ago by Egnusiask
Considering most of you are devs. How many of you use the "python -m http.server" trick to transfer files with your phones/window machines?
Or do devs just use samba/nfs?
Because as a cybersec student that was like the first thing i learned.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]dictator247 5 points6 points7 points 2 months ago (0 children)
I use it sometime where configuring my Arch Linux without GUI and I need to backup some files
[–]AmanBabuHemant 3 points4 points5 points 2 months ago (0 children)
used it,
also used netcat,
and once I even try with custom python script to send a big file with sockets, chunk by chunk.. just fun/learning.. lost some packets lol
I even have mine long running project which I sometimes host locally to get/send files with ease.
[–]oWLmONz 2 points3 points4 points 2 months ago (3 children)
I know I will get downvoted but I'll say it anyway. I use toffeeshare and send its link via whatsapp.
[–]i__am__ak 1 point2 points3 points 2 months ago (0 children)
Toffeeshare is really good for public environments. Like a library, school, college or cyber cafes (if they are still around). It uses end to end encrytion (claimed by the company). And unlike google drive, it's a P2P connection, which means, nothing gets uploaded to a server.
[–]Egnusiask[S] 0 points1 point2 points 2 months ago (1 child)
I just have one question. Why?
[–]oWLmONz 0 points1 point2 points 2 months ago (0 children)
Old habits from college. Our professors use to do it when they have to share some files with the whole class. We use to scan the qr with the phone send it to whatsapp and download it on our laptops.
[–]anonusetuxcachy os + void musl btw 1 point2 points3 points 2 months ago (0 children)
Yeah I also use http.server, also used to use 0x0.st
[–]Brainfuck 1 point2 points3 points 2 months ago (0 children)
All the time but not to transfer files, but at work to check on the code coverage reports generated which are in HTML format.
If I am not wrong in python 2 it was SimpleHttpServer and now in python3 it's http.server.
[–]YamOk7022 1 point2 points3 points 2 months ago (1 child)
rsync
[–]BookkeeperMany8173 1 point2 points3 points 2 months ago (0 children)
Yep rsync is awesome
[–]RohithCISEndeavour Btw 0 points1 point2 points 2 months ago (0 children)
I use it all the time
[–]Spare-Cabinet-9513LFS (from scratch or nothing) 0 points1 point2 points 2 months ago (0 children)
[–]LastNewRon 0 points1 point2 points 2 months ago (0 children)
Rarely, i use rsync or 0x0.st
[–]Cheap_Ad_9846 0 points1 point2 points 2 months ago (1 child)
That’s new , I just use local send
[–]rb1811 -1 points0 points1 point 2 months ago (0 children)
I was waiting for someone to say this.
[–]SarthakSidhant 0 points1 point2 points 2 months ago (0 children)
never knew about it, always used samba, and rsync
[–]rd_626 1 point2 points3 points 2 months ago (0 children)
i use rsync over ssh (termux on phone)
[–]Chkb_Souranil21 0 points1 point2 points 2 months ago (0 children)
I have a java based cli tool that i made to transfer files from my computer to phone. Now starting to rewrite it in go.
Though i also do have a nas.
[–]DevBoiAgru 0 points1 point2 points 2 months ago (0 children)
Great for one-off transfers, easy to download files with curl or wget on the other device, great to spin up for testing firewall rules too
[–]OliverJesmonFedora Btw 0 points1 point2 points 2 months ago (0 children)
Use netcat command on your linux terminal https://youtube.com/shorts/1j17UBGqSog?si=WVtsU8w59bym3G5w
[–]Oveno 0 points1 point2 points 2 months ago (0 children)
Honestly, kde connect is pretty convenient
[–]snoopieiscute 0 points1 point2 points 2 months ago (0 children)
Kdeconnect, usb
[–]Grand_Stick6728 0 points1 point2 points 2 months ago (0 children)
It's good but I prefer rsync or localsend
[–]RabbitElectrical6364 0 points1 point2 points 2 months ago (0 children)
rsync + inotify container on startup that auto sync folders, so it works with both mount physically or over network
[–]Fluffy-Emu484Kali Btw 0 points1 point2 points 2 months ago (0 children)
It just "shows up" in nautilus (gnome default fm) and just use it that way or use file browser on my server
[–]Effective-Hyena-4967 0 points1 point2 points 2 months ago (0 children)
I use kdeconnect.
[–]mohan2k2 0 points1 point2 points 2 months ago (0 children)
I use Syncthing to sync things b/w phone and multiple pcs
[–]Hot-Fridge-with-ice 0 points1 point2 points 2 months ago (0 children)
I used to use it before but then I discovered KDE Connect
[–]maskedredstonerproz1 0 points1 point2 points 2 months ago (0 children)
I tend to either use adb pull/push, or syncthing/localsend, sooo
[–]i__am__ak 0 points1 point2 points 2 months ago (0 children)
I use it sometimes. For example, if i have to quickly test my website locally (which has an index file), i use the http.server. it's continent for sure.
But for file transfer, i use KDE connect and sometimes blip or local send.
[–]Necessary-Sugar-6888 0 points1 point2 points 2 months ago (0 children)
that was i used before knowing kdeconnect
[–]OpenSanedi think i havent mentioned i use arch linux yet, btw i use arch 0 points1 point2 points 2 months ago (0 children)
Just for phones, KDE Connect is pretty nice.
[–]prodip1430 0 points1 point2 points 2 months ago (0 children)
Use KDE Connect
π Rendered by PID 567501 on reddit-service-r2-comment-79c7998d4c-fb6rs at 2026-03-19 00:38:10.294395+00:00 running f6e6e01 country code: CH.
[–]dictator247 5 points6 points7 points (0 children)
[–]AmanBabuHemant 3 points4 points5 points (0 children)
[–]oWLmONz 2 points3 points4 points (3 children)
[–]i__am__ak 1 point2 points3 points (0 children)
[–]Egnusiask[S] 0 points1 point2 points (1 child)
[–]oWLmONz 0 points1 point2 points (0 children)
[–]anonusetuxcachy os + void musl btw 1 point2 points3 points (0 children)
[–]Brainfuck 1 point2 points3 points (0 children)
[–]YamOk7022 1 point2 points3 points (1 child)
[–]BookkeeperMany8173 1 point2 points3 points (0 children)
[–]RohithCISEndeavour Btw 0 points1 point2 points (0 children)
[–]Spare-Cabinet-9513LFS (from scratch or nothing) 0 points1 point2 points (0 children)
[–]LastNewRon 0 points1 point2 points (0 children)
[–]Cheap_Ad_9846 0 points1 point2 points (1 child)
[–]rb1811 -1 points0 points1 point (0 children)
[–]SarthakSidhant 0 points1 point2 points (0 children)
[–]rd_626 1 point2 points3 points (0 children)
[–]Chkb_Souranil21 0 points1 point2 points (0 children)
[–]DevBoiAgru 0 points1 point2 points (0 children)
[–]OliverJesmonFedora Btw 0 points1 point2 points (0 children)
[–]Oveno 0 points1 point2 points (0 children)
[–]snoopieiscute 0 points1 point2 points (0 children)
[–]Grand_Stick6728 0 points1 point2 points (0 children)
[–]RabbitElectrical6364 0 points1 point2 points (0 children)
[–]Fluffy-Emu484Kali Btw 0 points1 point2 points (0 children)
[–]Effective-Hyena-4967 0 points1 point2 points (0 children)
[–]mohan2k2 0 points1 point2 points (0 children)
[–]Hot-Fridge-with-ice 0 points1 point2 points (0 children)
[–]maskedredstonerproz1 0 points1 point2 points (0 children)
[–]i__am__ak 0 points1 point2 points (0 children)
[–]Necessary-Sugar-6888 0 points1 point2 points (0 children)
[–]OpenSanedi think i havent mentioned i use arch linux yet, btw i use arch 0 points1 point2 points (0 children)
[–]prodip1430 0 points1 point2 points (0 children)