5 ms·
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
by mholt 4y ago
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=matt https://caddy.community/t/running-caddy-2-on-android/13993?u...
Here's the dynamic DNS plugin: https://github.com/mholt/caddy-dynamicdns 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.
- gitowiec 4y agoI 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.
- madacol 4y agoWell, if you don't mind really slow bandwidth, you can set up a Tor onion service
- gjadi 4y agoWouldn'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 https://man.openbsd.org/ssh#R Or setup wireguard and forward PUBLICIP:PORT to PHONE_WG_IP:PORT
- cocoafleck 4y agoT-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).
- lbrito 4y agoThanks 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_analytics_android.html https://lbrito1.github.io/blog/2020/07/replacing_google_anal...