5 ms·
Same here, it's also by far the most convenient way I've found to share files between devices on my network.
by trotro 3y ago
Same here, it's also by far the most convenient way I've found to share files between devices on my network.
- seanw444 3y agoSame for me. Although I just discovered `qrcp` which has been quite handy, and I'm sure there are many tools like it.
- bradrn 3y agoWait, how does that work? As far as I can see from the documentation, it can only serve on localhost, which to my understanding is only accessible from the single device it was launched on.
- vram22 3y agoHave you checked the full docs? Maybe it takes an optional parameter to specify the server machine's IP address or host name. Then others on the network could see it. Not near a PC now.
- ptx 3y agoI think you must have misread the documentation [1], which says: "By default, the server binds itself to all interfaces." [1] https://docs.python.org/3/library/http.server.html https://docs.python.org/3/library/http.server.html
- bradrn 3y agoNot ‘misread’, just ‘missed that bit entirely’. Testing it out, this is indeed the case.
- randlet 3y agoIf you serve on localhost you can usually access from other devices by using the "servers" ip address. So if your desktop where you're running the server has ip 192.168.1.10 then you can go to http://192.168.1.10 http://192.168.1.10 in the browser of another device on the same network.
- bradrn 3y agoOhh, that makes complete sense… thanks for pointing this out!
- codetrotter 3y agoAlso if your host and client devices both support mDNS / Bonjour, you don’t even need to type the IP address. For example if your Ubuntu Linux desktop machine has host name foobar, and you run a http server on for example port 8000 then you can use your iPhone and other mDNS / Bonjour capable things to open http://foobar.local:8000/ http://foobar.local:8000/ And likewise say you have a macOS laptop with hostname “amogus” and for example http server is listening on port 8081, you can navigate on other mDNS / Bonjour capable devices and machines to http://amogus.local:8081/ http://amogus.local:8081/
- Karellen 3y agoBut `localhost` is also an alias specifically for the loopback address (typically `127.0.0.1`), so "serve on localhost" can reasonably be interpreted as "serve on 127.0.0.1" which will only be available to other programs on that host, and not to others devices on the local network.
- LtWorf 3y agoI wrote this, a while ago https://ltworf.github.io/weborf/qweborf.html https://ltworf.github.io/weborf/qweborf.html On plasma it also installs a right click shortcut to share directory from dolphin.
- vs4vijay 3y agoFYI: you can use https://file.pizza/ https://file.pizza/ for sending the file outside the network.