News for hackers. Stuff that matters.
Re:Repurposing an old Android phone as a web server by mholt on Wednesday June 22, 2022 @09:17PM (#31844040)
Sure, you can do this with nginx and dynamic DNS if you really want to, but Caddy does it all for you, with automatic HTTPS, and runs natively on Android (or in Termux): https://caddy.community/t/running-caddy-2-on-android/13993?u...

Here's the dynamic DNS plugin: https://github.com/mholt/caddy-dynamicdns -- it will just update the A records for your domain directly with your DNS provider, no need for a third-party service.

Re:Repurposing an old Android phone as a web server by lbrito on Friday June 24, 2022 @10:19PM (#31871857)
Thanks for that, will look at it!

I actually moved away from DDNS after a while because I moved and my new ISP had CGNAT. I posted about it here https://lbrito1.github.io/blog/2020/07/replacing_google_anal...

Re:Repurposing an old Android phone as a web server by gitowiec on Thursday June 23, 2022 @04:12AM (#31846349)
I don't think dynamic DNS will work on a phone connected to LTE service. LTE providers keep phones behind the NAT (or something with similar results). There is no way to forward/open a port for incoming connections. I wish there was a way to bring up a tunnel to make incoming connections possible via LTE/GSM OTA way.
Re:Repurposing an old Android phone as a web server by gjadi on Friday June 24, 2022 @04:22AM (#31859031)
Wouldn't it be possible with ssh -R ?

The device connect remotely to a server that you control and give access back to you.

https://man.openbsd.org/ssh#R

Or setup wireguard and forward PUBLICIP:PORT to PHONE_WG_IP:PORT

Re:Repurposing an old Android phone as a web server by cocoafleck on Saturday June 25, 2022 @01:00PM (#31876830)
T-Mobile has open ports on IPv6 (at least as of a few months ago). I was curious, and tried hosting a web site from my phone, and it worked flawlessly (assuming you are willing to abandon IPv4).
Re:Repurposing an old Android phone as a web server by madacol on Thursday June 23, 2022 @08:16AM (#31847980)
Well, if you don't mind really slow bandwidth, you can set up a Tor onion service