3 ms·
try running `python3 http.server 8080` on a safe directory on your laptop, and see if you can easily access a file from it from your mobile. With Firefox for A
by tetris11 6y ago
try running `python3 http.server 8080` on a safe directory on your laptop, and see if you can easily access a file from it from your mobile.
With Firefox for Android, it doesn't permit you to connect a machine on your own LAN, even if you try to add an exception.
With stock browser it does.
I'm sure there are better ways to serve a file between machine and phone, but that python snippet was my easiest goto.
No more
- fgonzag 6y agowouldn't it be much easier to use scp for that? there are plenty of android clients, and plenty of windows servers. I just actually use synced storage (Synology Drive from a Synology NAS), so I would probably use a Dropbox like service for that functionality. There's an app called droid transfer that basically does what you did with python (setup a server and have a simple download client), and there's also wireless ADB (which will require you to use the USB cable for the initial setup)
- s_gourichon 6y agoI think the point is e.g. being able to quickly share a file with a smartphone nearby, that is not yours. Not telling your co-workers to install on their phones some app foreign to them.
- yjftsjthsd-h 6y ago? I just tried it and it works fine. Firefox 84.1.1 on Android, connect to 192.168.x.y:8080 and it comes up and shows me a directory listing that I can navigate and open files from. (you missed the -m, BTW; it's `python3 -m http.server 8080`)
- jackewiehose 6y ago> try running `python3 http.server 8080` on a safe directory on your laptop, and see if you can easily access a file from it from your mobile Works without a problem (I just tried python -m SimpleHTTPServer). You just have to type out the http://-part http://-part explicitly. Wow that would be annoying if they dropped http completly.