News for hackers. Stuff that matters.
Re:Every Phone Should Be Able to Run Personal Website – Roha... by jareklupinski on Saturday August 12, 2023 @11:23AM (#37101105)
> 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

Re:Every Phone Should Be Able to Run Personal Website – Roha... by jeroenhd on Saturday August 12, 2023 @11:56AM (#37101469)
It'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.

Re:Every Phone Should Be Able to Run Personal Website – Roha... by quaintdev on Saturday August 12, 2023 @12:02PM (#37101555)
Someone 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.
Re:Every Phone Should Be Able to Run Personal Website – Roha... by asplake on Saturday August 12, 2023 @01:09PM (#37102189)
Waited a long time for this – didn't know it was on its way, thanks!

https://datatracker.ietf.org/doc/draft-ietf-dnsop-svcb-https...

Re:Every Phone Should Be Able to Run Personal Website – Roha... by maccard on Saturday August 12, 2023 @12:02PM (#37101545)
Is it? I installed https://play.google.com/store/apps/details?id=com.phlox.simp..., and 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.
Re:Every Phone Should Be Able to Run Personal Website – Roha... by quaintdev on Saturday August 12, 2023 @12:03PM (#37101567)
None of them can run server on port 80/443
Re:Every Phone Should Be Able to Run Personal Website – Roha... by maccard on Saturday August 12, 2023 @12:17PM (#37101698)
But you can run a server, register a domain, and send http://quaintdev.com:8000 to your friends and family, right?
Re:Every Phone Should Be Able to Run Personal Website – Roha... by ilyt on Saturday August 12, 2023 @03:26PM (#37103405)
Your 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

Re:Every Phone Should Be Able to Run Personal Website – Roha... by quaintdev on Sunday August 13, 2023 @04:10AM (#37107733)
I 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.
Re:Every Phone Should Be Able to Run Personal Website – Roha... by paxys on Saturday August 12, 2023 @03:15PM (#37103293)
Unless that device has an Apple logo on it it is 100% possible.
Re:Every Phone Should Be Able to Run Personal Website – Roha... by wryanzimmerman on Saturday August 12, 2023 @11:44PM (#37106487)
I 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).

Re:Every Phone Should Be Able to Run Personal Website – Roha... by dieortin on Sunday August 13, 2023 @08:01AM (#37109099)
And were you able to connect to that server from some other device?