by roxil · 3y ago · 0 comments
Maybe it's because I use LineageOS (and Cyanogen mod before that), but I never even knew that there were problems with being able to run a web server on android. Just recently, while I was bored on a train ride, I used the Fdroid app Lightweight Web Server (LWS) to send some files to a friend on iPhone for which I would otherwise have no easier way of doing (whatsapp upload is slower and filesize is limited). I move the files into the folder, prepare the HTML file a bit, then my friend sets up a wifi hotspot, I connect and tell my friend to enter the IP-Address or scan a QR code. Works nicely for me (although weirdly it doesn't work if I create the hotspot. I need to connect to theirs, I wonder why)
Even if this is something I only use rarely, using a phone that can't do something this simple is unacceptable to me. It's satisfying in itself that I don't want my phone manufacturer to arbitrarily limit what the hardware can and cannot do. Would I suggest running a business website off my phone? No. I doubt it's secure, performance is limited, ddos would be a possible issue. Do I still want to be able to do silly things with the devices I purchase? Absolutely.
Another point, if I remember correctly, a cellphone mesh network of some kind was useful for Hong Kong protestors at one point at least.
most of that power efficiency is based on deep sleep modes and network packet batching. Opposite of what servers do
On their own, they are small and efficient. Proper servers need 10x, 100x, or more power just to boot. Sure, AMD has some amazingly efficient Zen 4 cores now. But cores don't exist in a vacuum. Just spinning the fans on such a machine consumes more power than a phone could even dissipate.
Running a web server on a mostly-trusted LAN for 5 minutes doesn't sound like the security risk you're trying to paint it as