8 ms·
This blog is hosted on my Android phone
- igetspam 4y agoThis is brilliant! I've kicked around the idea but I've never taken the time to figure out the details. Thank you! I have so many devices lying around and some aren't even fit for women's shelters.
- deleted 4y ago[deleted]
- mxschll 4y agoJust learned about pinggy.io. Neat little service! I wonder how many requests/second that phone can serve. Nowadays, phone specs aren't too bad for a simple web server.
- jb1991 4y agoI think we just found out, because the site is not loading.
- mxschll 4y agoShould've used PHP instead of Node.
- anonn77 4y agoWhat difference would that make?
- lionkor 4y agonot a single thread behind a few layers of abstraction, so you get more out of your hardware
- blowski 4y agoAs someone who's been using PHP since the late 90s, I'm greatly enjoying this renaissance in its fashionability. Seeing multiple comments on HN genuinely recommend it is odd.
- mxschll 4y agoLaravel was the first framework I ever used. Until now, I haven't come across any other framework that is well-designed, and enjoyable to use as Laravel (and made PHP fun). I always assumed Laravel was the standard, but sadly that it's not the case.
- 0xblinq 4y agoCan’t agree more with this. I think the same. And I’ve tried almost everything under the sun.
- roqi 4y ago> not a single thread behind a few layers of abstraction, so you get more out of your hardware just-js holds spot 5 of TechEmpower web framework benchmark round 21. https://www.techempower.com/benchmarks/#section=data-r21 https://www.techempower.com/benchmarks/#section=data-r21
- lionkor 4y agoyeah, but not node.js
- Hamuko 4y agoLink is giving me random PR_CONNECT_RESET_ERROR errors, so it doesn't really seem like a good idea.
- darkstar_16 4y agoA small VPS will cost $180 over 3-4 years and will likely have better performance under load. It's a neat idea, but not practical, imho.
- Hamuko 4y agoEspecially when the article suggests to "subscribe to Pinggy Pro", which is $5/month (currently $2.50/month on sale). Pretty sure that's more than the cheapest VPS on Hetzner. This seems like paying more upfront and paying more per month for less.
- mnky9800n 4y agomaybe this is all just an advertisement for Pinggy Pro and it really has nothing to do with hosting a website on an android phone.
- roqi 4y ago> Pretty sure that's more than the cheapest VPS on Hetzner. I'm rocking a two node cluster in Hetzner. One is an old 1vCPU small that costs over $3/month, and the other is a new 2vCPU addition that is a dash over $4. I pay for two ipv4 external IPs which costs more. Also, Hetzner started to offer ARM64 nodes that are even cheaper. Yes, Pinggy Pro is more expensive than operating your own nodes in Hetzner.
- ThatPlayer 4y agoYou probably don't even need a VPS. Shared hosting still exists and will be even cheaper and still be good enough.
- quaintdev 4y agoUse Hugo with GitHub pages.
- janandonly 4y agoI've never understood why Github would allow anyone to (mis)use it as a dumb hosting pipe?
- qxfys 4y agodown?
- lanewinfield 4y agoHonestly maybe the most I've laughed at anything I've seen on HN.
- grose 4y agoArchive: https://web.archive.org/web/20230513033436/https://androidblog.a.pinggy.io/ https://web.archive.org/web/20230513033436/https://androidbl...
- jmkni 4y agoAaaaand it's gone
- mfeldheim 4y agoIf this is a phone he’s actually using he just might be in a subway xD
- dontdieych 4y agoCome to my country. 100% 5G antenna + 100% WIFI anywhere in any metro.
- lma21 4y agoWhere is that?
- BrandoElFollito 4y agoProbably Monaco or the Vatican (though none have a subway). Because in a real country you always have blind spots, even in relatively easier points such as the Netherlands (flat and populated)
- jefftk 4y agoThe Vatican sort of has a subway. It has a single train station, which has (rare) passenger service, and about 100m of train tunnel.
- BrandoElFollito 4y agoAh, I had no idea! Thanks for sharing that. For reference, the Wikipedia article: https://en.wikipedia.org/wiki/Vatican_Railway https://en.wikipedia.org/wiki/Vatican_Railway
- FinnKuhn 4y ago
- ykhi 4y agoThe future right there
- thomasfromcdnjs 4y agoAlready down aha I lol'ed
- ainiriand 4y agoWhat a stupid absurdity. But nice experiment I guess...
- jraph 4y agoThis article mostly reads like an ad for Pinggy.
- jeff_d_miller 4y agoA bit of a shame that posting this kind of thing to HN effectively ddos'es it.
- k_bx 4y agoIt's actually a great idea in some ways to use a phone instead of a Raspberry Pi, since it has a battery in case your electricity goes unstable, you can add LTE as a backup internet, and it has a screen to bootstrap it without an external monitor which not all of us have. I only wish Android phones would be more open to put a full Linux distro on them.
- VanTodi 4y agoUbuntu touch supports some old phones you can buy used. It's technically not a android phone anymore, but it's possible. I tried it on my oneplus 6 and I worked, I'm just not ready for the ecosystem yet
- spidersouris 4y agoWould be interesting to know how much battery is used by running the website.
- yreg 4y agoObviously depends, but solar powered website currently uses 2.8W. [0] Louwrentius uses 29W? Do I read it correctly? [1] [0] https://solar.lowtechmagazine.com/power.html https://solar.lowtechmagazine.com/power.html [1] https://louwrentius.com/ https://louwrentius.com/
- unstuck3958 4y ago> I only wish Android phones would be more open to put a full Linux distro on them. You can: https://userland.tech/ https://userland.tech/
- riantogo 4y agoWhen can we see it?
- fragkakis 4y agoPoor guy may have bricked his phone
- iefbr14 4y agoHe may have bricked his access point as well..
- zoobab 4y agoUse IPv6, not some third party X86 servers like pinggy.io.
- garganzol 4y agoWhen data traverse a x86 node, the bytes get distorted and loose their inherent ARM warmth and fidelity. No measurement tool can catch that, but we, computerphiles, can sense the change almost immediately just by our ears and by careful listening to the whining of motherboard coils.
- dutchbrit 4y agoI’ve got an old iPod laying around and was thinking about doing the same - just don’t know how feasible it’d be. Love it when people repurpose old hardware.
- axelthegerman 4y agoDefinitely neat for a small personal or community site where you don't expect any kind of public traffic. Not so useful for something that might end up on HN and go down. Could also put a CDN infront to lighten the load on the upstream but guess what, now you're not just hosting on your phone anymore and might as well use other cloud services where often you can host more for free than a phone can handle
- k_bx 4y agoFor those who need this I'd recommend Tailscale and their MagicDNS. You'll get access to this device for free from anywhere, with a working DNS generated for you, and only from devices that were allowed to.
- SeriousM 4y agoHere is a blog from tailscale about it: https://tailscale.com/blog/2021-09-private-dns-with-magicdns/ https://tailscale.com/blog/2021-09-private-dns-with-magicdns...
- miyuru 4y ago> Could also put a CDN infront androidblog.a.pinggy.io is pointing to a AWS IPv4 address, I don't know why the creator did not do this. I have also tried out direct access to my phone via public IPv6 and it works really well, although the prefix is not static.
- spzb 4y agoLooks like the images are being served by Netlify (according to the HTTP headers).
- lionkor 4y agoWhy do you need pinggy for this? Seems like any DynDNS would suffice?
- quaintdev 4y agoAndroid does not allow running server on port below 1000 so with dyndns your URL will look funny which is okay for HN crowd but not for people you want to share your blog with.
- sharikous 4y agoMost routers can do port forwarding to a different local port
- sverhagen 4y agoThere's presumably no router in this setup.
- contravariant 4y agoThere would be in a setup using DynDNS, unless you want to redirect people to a closed firewall.
- LinuxBender 4y agoSSH is doing the port forwarding and Pinggy is just acting like a VPS node so one could just change the port forwarding and/or have NGinx/HAProxy/Apache on the VM could listen on 443 and the Android can listen on any port. Added bonus, the web server could cache the static content to avoid the earth shattering kaboom. VM's are not free but neither is Pinggy.
- quaintdev 4y agoWith new DNS HTTPS RR and SVCB records anyone should be able to run a server from Android. Android does not allow running server on ports below 1000. With above DNS trick one should be able to host a server on non standard port of Android without funny looking URL. We don't even need a third party like pinggy as in OP's case which might be resetting connection to OPs phone. So far I have tried to configure my local network DNS server to respond using above records but it's not working for some reason.
- jeroenhd 4y agoDo any browsers actually use this mechanism for port detection? I'm seeing plenty of HTTPS queries in my PiHole dashboard, but I'm not sure if browsers will actually connect to some high numbered port just because HTTPS told them to. In theory we could've had this decades ago if browser respected SRV records, but alas.
- quaintdev 4y agoI don't see these records on my DNS server. I think Apple devices make heavy use of these records.
- psudohadex 4y agoWho DOS'ed the poor Android?
- henryluo 4y agoTraffic from Hacker News, I guess. :-)
- psudohadex 4y agoWho DOS'd the poor Android?
- themodelplumber 4y agoThis got me wondering. > You are a web DevOps expert. Provide a list of ten concise combinations of software stack and hardware, starting from "budget hosted VPS website, heavy caching, and dynamic DNS with outside cache" and ending with "Android phone at home on standard connection using third party dynamic DNS and basic web server". Each combination should get more homebrew until that final Android one. There's some room for prompt improvement but the ideas in the result were an interesting read (In place of the linked website which I couldn't read of course). For one, the list seemed way more fun, or the projects easier to maintain for a single person, when I specified "web hobbyist" as compared to DevOps expert... though I know there really are people out there who are _definitely_ looking forward to maintaining enterprise software on the weekends...
- leblancfg 4y agoFWIW here's what I got (GPT4): 1. *Budget hosted VPS website, heavy caching, and dynamic DNS with outside cache* - Software: Nginx, Varnish, PHP-FPM, MySQL - Hardware: Entry-level VPS, 1 vCPU, 1 GB RAM 2. *Shared hosting with CDN and dynamic DNS* - Software: Apache, PHP, MySQL, Cloudflare CDN - Hardware: Shared hosting plan, 1 GB RAM 3. *Raspberry Pi with LAMP stack and dynamic DNS* - Software: Apache, PHP, MySQL, ddclient (for dynamic DNS) - Hardware: Raspberry Pi 4, 2 GB RAM 4. *Self-hosted containerized web stack with dynamic DNS* - Software: Docker, Nginx, PHP-FPM, MySQL, Traefik (for dynamic DNS) - Hardware: Home server, 2 cores, 4 GB RAM 5. *Home server with reverse proxy, caching, and dynamic DNS* - Software: Nginx, PHP-FPM, MySQL, Varnish, ddclient (for dynamic DNS) - Hardware: Home server, 4 cores, 8 GB RAM 6. *Self-hosted web stack on a NAS with dynamic DNS* - Software: Apache, PHP, MySQL, Synology DDNS (for dynamic DNS) - Hardware: Synology NAS, 2 GB RAM 7. *Old laptop as a web server with dynamic DNS* - Software: Apache, PHP, MySQL, No-IP (for dynamic DNS) - Hardware: Old laptop, 2 cores, 4 GB RAM 8. *Self-hosted web stack on a mini PC with dynamic DNS* - Software: Nginx, PHP-FPM, MySQL, DuckDNS (for dynamic DNS) - Hardware: Intel NUC, 2 cores, 4 GB RAM 9. *Web server on a single-board computer with dynamic DNS* - Software: Lighttpd, PHP, SQLite, Afraid.org (for dynamic DNS) - Hardware: BeagleBone Black, 512 MB RAM 10. *Android phone at home on standard connection using third party dynamic DNS and basic web server* - Software: KSWEB (web server), No-IP (for dynamic DNS) - Hardware: Android phone, 2 GB RAM
- cultofthecow 4y agoThis page isn’t workingandroidblog.a.pinggy.io didn’t send any data. Ok.
- stuckkeys 4y agoPretty cool.
- fsckboy 4y agohttps://archive.ph/iLmmj https://archive.ph/iLmmj it was kind of interesting to me that archive.ph sent me the images slowly, as if they weren't archived but were coming straight from somebody's phone...
- nologic01 4y agoWith android termux you can install e.g. django/wagtail and take it from there. In a sense these projects prove the obvious yet hidden-in-plain-sight: the vast numbers of mobile computing devices that have circulated since the "iPhone moment" could be reconfigured in all sort of ways to be more than a dumb touch screen client for scrolling down social media pages. If we ever get to see a true open mobile OS there might be a Cambrian explosion of new applications and use cases. Not holding my breath though. The failure of open source mobile to reach a workable stage is now pretty clear. It seems this domain is TITO (too important to open).
- Arnt 4y agoTITO? Blah. Lots of phones are open enough to install lots of things on. My daily phone has lineageos (I'm using it), which is an existence proof that you can run a kernel of your choice and userland of your choice, and my previous one had something called treble, which I didn't look into but also involved supplying your own kernel and userland. If you have the ability to run a kernel and userland of your choice, what can't you do? I know something you can't do: applications that require much electric power. And something else: applications that require many people (or even everyone) to run the same software. But really, if there were to be some sort of cambrian explosion it ought to show up on my daily phone or one of the many similar ones.
- nologic01 4y agoyou need critical mass for things to happen. for critical mass you need a reasonably open migration channel. for that you need a combination of device manufacturers and open source communities to make it easy to drift in and out from this space (the dual-boot equivalent)
- Arnt 4y agoSo... we need critical mass without early adopters, because the things to invent will be created only after critical mass is reached? I think you're just inventing excuses: "There would be a Cambrian explosion of new uses cases, were it not for (excuse goes here)".
- lynx23 4y agoQuestion is, was the site submitted by the owner as some sort of test, or was it submitted by a "friend" who wanted to show the owner that the idea doesn't work.
- edent 4y agoHa! Back in the good old days, we ran Apache on a Nokia N95 https://mobiforge.com/design-development/pamp-personal-apache-mysql-php https://mobiforge.com/design-development/pamp-personal-apach... Same issues as faced here, of course.
- ghoshbishakh 4y agowow!
- marginalia_nu 4y agoIf we were using HTTP and not HTTPS, I think this would have survived the HN death hug. It's great in many ways, but it sadly puts a wet blanket on the whole low-powered server thing :-/
- arp242 4y agoI sometimes get a wave of bots scanning for /wp-admin/ and exploits and whatnot, and it's always the https proxy that uses the most CPU.
- chrismorgan 4y agoHTTPS is being terminated at pinggy.io, then traffic is going to the Android phone over an SSH tunnel.
- thih9 4y agoI like the idea of using a phone for a web server. There could be an app, a simple CMS, a simple CDN. Not much different from social media websites, but maybe more decentralised. Then again, actual servers seem more reliable in practice; and decentralised platforms like e.g. pixelfed [1] work well for me for this kind of usage. [1]: https://pixelfed.org https://pixelfed.org
- janandonly 4y agoCan you explain what Pixelfed.org is? Is it a self-hosted Mastodon instance, with the sole purpose of hosting your photos (and videos)? Why is there a reference to AWS, to do the heavy lifting instead of rely on your own server?
- msk-lywenn 4y agoPixelfed is to instagram what mastodon is for twitter
- inxode 4y ago*was*
- tropin 4y agoSo, just under the drawer full of Pi's and clones, I have another drawer with mediatek tablets and phones, most of them with a broken screen. It's there any progress out there to be able to install armbian/openwrt/whatever linux on them?
- pmlnr 4y agoNot much, at least not directly. But there's https://f-droid.org/en/packages/com.termux/ https://f-droid.org/en/packages/com.termux/ which is great.
- opan 4y agopostmarketOS is usually leading the way there. I'd check their devices page and see if anyone's got them working yet. Although I think mediatek stuff tends to be harder to support. https://wiki.postmarketos.org/wiki/Devices https://wiki.postmarketos.org/wiki/Devices
- xx_ns 4y agoIn a similar vein, two years ago I set up my blog to run on a GPS/LTE modem inside a phone. https://nns.ee/modem-blog https://nns.ee/modem-blog
- scooke 4y agoIt's still reachable for me. Cool.
- FreeHugs 4y agoWhy is Termux not on the Google Play Store?
- NoGravitas 4y agoBasically, Google keeps locking down more and more niche computing functions like "file access" and "running subprocesses" that no one would ever want to use, in the name of security.
- hoppyhoppy2 4y agohttps://wiki.termux.com/wiki/Termux_Google_Play https://wiki.termux.com/wiki/Termux_Google_Play
- ghoshbishakh 4y agoBecause of some issues: https://github.com/termux/termux-packages/wiki/Termux-and-Android-10 https://github.com/termux/termux-packages/wiki/Termux-and-An... "Termux and its plugins are no longer updated on Google Play Store due to android 10 issues and have been deprecated. The last version released for Android >= 7 was v0.101. It is highly recommended to not install Termux apps from Play Store any more."
- the100rabh 4y ago[dead]
- hk1337 4y agoI wonder if someone could prevent their ability to make/receive phone calls and SMS DoS'ng the site?
- anderspitman 4y agoImagine this but instead of needing any CLI skills, you just install a "blog" app on the phone, do a quick OAuth2 flow with your domain provider[0] to connect a domain through a tunnel, and you're ready to start posting. This is essentially my vision of the future of selfhosting. We have a lot of work to do, but the technology is all there. Also, if you're looking for similar tools to pinggy, I maintain a list here[1]. [0]: https://takingnames.io/blog/introducing-takingnames-io https://takingnames.io/blog/introducing-takingnames-io [1]: https://github.com/anderspitman/awesome-tunneling/ https://github.com/anderspitman/awesome-tunneling/
- renonce 4y agoHow can a mobile phone's network be as stable as that of a datacenter? Without that stability it's not going to be practically useful.
- sk0g 4y agoI guess a caching layer could help, like CloudFlare's DDoS protection that still tries to serve a page if a cached version exists. At that point I'm not sure if it's functionally different to syncing markdown files to something like S3 or GitHub pages.
- cryptonym 4y agoOnly works if the content is popular in your region and you are only half-self-hosting.
- rollcat 4y ago> I guess a caching layer could help In practice this works only for trivial apps, that have no dynamic content, don't serve large files, don't see a lot of traffic, doesn't come from all over the world (each PoP has a separate cache), etc. CDN caching is opportunistic, most services assume server-grade hardware at the origin that can take some "warmup" load on its own. Also if you're introducing a third-party CDN/cache, you're already throwing away a whole bunch of reasons for self-hosting in the first place.
- dt3ft 4y ago> you need to sign-up for Pinggy and subscribe to Pinggy Pro Is this an ad?
- roessland 4y agoSome telecom providers actually provide a public IP address that maps directly to your phone. You might have to change your APN settings to get one, and it might be dynamic. It's a spectacularly bad idea that lets you serve HTTP (and any other port) directly from your phone without a SSH tunnel. You can also debug your Android with ADB... over the internet.
- smorrebrod 4y agoThat last part scared me! I tend to have ADB debug over USB always enabled on my phone but I'm not in any way enabling debug over wifi now I know this.
- pimterry 4y agoWhilst publicly exposing ports from a phone is still certainly scary, for ADB specifically it's actually not as bad as it sounds - wifi debugging requires an explicit & bi-directionally initiated pairing process beforehand (sharing a 6 digit code or scanning a QR code to do so) and then also separately trusting the public key of the connecting computer at the moment when it connects. To allow untrusted access, you'd have to have the ADB port accessible to the attacker, and then intentionally open developer options and tap "pair for wifi debugging", and then enter/scan a malicious pairing code, and then accept the unrecognized public key when the device connected. And if that does happen, there's a persistent notification that a debugger is connected.
- KomoD 4y agoI wish my provider gave me that, would be so cool
- capitanazo77 4y agoduckdns is free.
- rwrrrs 4y ago[flagged]
- dh-g 4y agoI have a music server(Navidrone) running on a similar setup (https://davidhampgonsalves.com/junk-drawer-phone-as-a-music-streaming-server/ https://davidhampgonsalves.com/junk-drawer-phone-as-a-music-...) but preventing Termux from being killed is a persistent issue. PostmarketOS seems like the best option but its device support is quite limited.
- xg15 4y agoI think the idea of using cheap/old Android phones as home servers is exciting, actually. If you compare the hardware with a raspberry pi, the results turn out pretty good: - like a raspi, phones are optimized for "always-on" operation, which means they are energy efficient and completely quiet. - compute power is probably larger than a raspi, or at least comparable, depending how old the phone is. - unlike a raspi, phones come with lots of additional hardware, such as a battery, touchscreen, microphones, camera, wifi, bluetooth, a cellular modem and various sensors. More modern phones might even come with TPUs or other accelerators. - there are also a few GB of flash storage. I think hardware-wise, that's already more than enough for some basic "tinker" usecases, where you mostly need an always-on device with basic LAN and internet connectivity: i.e. IRC bots or servers, webhook targets, pihole, (small) media or Owncloud servers, etc. Projects which require a camera, microphone, display or bluetooth connectivity might even be a lot cheaper because you don't need any additional hardware. Things are getting less advantageous when you need additional ports or peripherals, i.e. Ethernet, HDMI/DisplayPort or GPIO pins. You can sort of solve this by using an USB-OTG cable and then connecting various USB peripherals to provide the missing ports. (You could even connect an Arduino to get GPIO pins). It'll probably not work well with high-bandwidth use cases if everything has to be relayed through a single USB2 port though. That makes it hard for usecases such as router, NAS or media player. Maybe newer phones with USBC would work here though. The other drawback is that you'll invariably end up with all kinds of proprietary and opaque firmware blobs. I think the best option here would be Fairphone, but even there I'm not sure if they are entirely blob-free. Nevertheless, I think it's an interesting avenue. Termux seems like a good start, but it's still just a VM in an app. Does anyone know if there are actual AOSP or Lineage distributions for something like this?
- smetj 4y agoThis is a quite nice demonstration of what is already possible these days! The people capable of looking beyond the current limitations understand what the future of a true decentralized internet might/should look like (apart from pinggy requirement). Inspiring. Great job!
- MuffinFlavored 4y agoDo iOS apps not let you bind a socket TCP/IP port and that's why this couldn't be achieved on an iPhone without jailbreak? Obviously they also don't allow you to have a userspace terminal or access to any of the underlying BSD/OS/Darwin XNU kernel resources
- granshaw 4y agoI said it once and I’ll say it again: NAT is not actual “security”, and a good part of the spirit of the internet died when it became ubiquitous, along with puny asymmetric upload speeds
- braincode 4y agoSomebody should automate these docker on android instructions: https://gist.github.com/FreddieOliveira/efe850df7ff3951cb62d74bd770dce27 https://gist.github.com/FreddieOliveira/efe850df7ff3951cb62d... Would be fun to run a Kubernetes cluster out of old Androids :)
- subarctic 4y agoWait, this is on the front page of HN and it's actually loading? Must have a CDN in front of it or something EDIT: according to comments it was down earlier, but it's pretty snappy right now, suprisingly