4 ms·
> If you want to keep a spare phone plugged in all the time in your closet, connected to Wifi/Ethernet, and hack it to be a webserver, then go ahead even this
by jareklupinski 3y ago
> If you want to keep a spare phone plugged in all the time in your closet, connected to Wifi/Ethernet, and hack it to be a webserver, then go ahead
even this low bar is (imo sadly) currently impossible for someone who just has a spare phone in their closet and a bit of html knowledge
looking forward to the unicorn that makes wordpress for ios/android
- jeroenhd 3y agoIt's not exactly hard, you can download web servers from the Play Store. The problem is that you'll need to set up port forwards and such to get traffic to port 8080 or whatever your web server of choice offers. Termux can install nginx, PHP, and various SQL clients, so I'm sure someone can make a copy/paste script that'll set up a WordPress server on your phone.
- quaintdev 3y agoSomeone correct me if I'm wrong but I think this port issue will get solved with the introduction of new SVCB/HTTPS RR record types. Basically the dns server will include port info along with existing IP info in it's response.
- asplake 3y agoWaited a long time for this – didn't know it was on its way, thanks! https://datatracker.ietf.org/doc/draft-ietf-dnsop-svcb-https/ https://datatracker.ietf.org/doc/draft-ietf-dnsop-svcb-https...
- maccard 3y agoIs it? I installed https://play.google.com/store/apps/details?id=com.phlox.simpleserver https://play.google.com/store/apps/details?id=com.phlox.simp..., and https://play.google.com/store/apps/details?id=com.foxdebug.acodefree https://play.google.com/store/apps/details?id=com.foxdebug.a... (the first two apps I found) and had a http server with custom html in all of about 5 minutes.
- quaintdev 3y agoNone of them can run server on port 80/443
- maccard 3y agoBut you can run a server, register a domain, and send http://quaintdev.com:8000 http://quaintdev.com:8000 to your friends and family, right?
- ilyt 3y agoYour mobile internet is behind NAT and your WiFI router would need port redir to point external traffic to the phone inside the LAN anyway. So even if you can run it at port 80 you can't really do that without NAT or tunnel somewhere and if you need that you can just NAT to get it visible on 80 from the outside It's mostly imaginary problem
- quaintdev 3y agoI don't need website to run on IPv4. Almost every mobile provider has IPv6 deployed here in India. With IPv6, there's no issue of NAT.
- paxys 3y agoUnless that device has an Apple logo on it it is 100% possible.
- wryanzimmerman 3y agoI thought this sounded weird so I tried it. It took me about two mins, and most of that was because I typed a minimal html page on my phone using vi. My phone has an apple logo, and the whole point of the article is that android is the one which blocks you from doing this without jailbreak. But on an iPhone it takes like one minute and zero configuration. (I literally just ran `python3 -m http.server 80` with no issues in ish).
- dieortin 3y agoAnd were you able to connect to that server from some other device?