Kunal Khude · Dev & Creator
Kunal Khude
Back to all projects
Self-Hosting / Infrastructure / ExperimentationStatus: CompletedRole: Systems Architect & Self-Hoster

Personal Server — Phone-Powered Infrastructure

A self-hosting experiment turning an Android smartphone into a 24/7 personal server using Termux, hosting file services, download managers, URL shorteners, and Node.js microservices.

Personal Server — Phone-Powered Infrastructure

Technology Used

AndroidTermuxLinuxNode.jsJavaScriptReverse TunnelingNginx / Lighttpd

1. Project Overview

One of my most exciting technical experiments: repurposing an Android smartphone into a 24/7 self-hosted personal server using Termux and custom Linux userland environments. Instead of paying recurring fees for cloud VPS instances or running power-hungry PC hardware, this setup harnesses the built-in battery backup, low power consumption, and cellular/Wi-Fi connectivity of a smartphone to host multiple production microservices accessible through my custom domain.

Why I Built It

To demonstrate resourcefulness, practical problem-solving, and self-reliance by transforming readily available pocket hardware into a reliable, battery-backed server environment.

Problem I Wanted to Solve

Traditional home servers demand dedicated hardware, uninterrupted mains power, UPS backups, and considerable electrical wattage. Many hobbyist services don't need heavyweight compute—they need continuous availability, low power draw, and resilience against sudden power outages.

What I Built

A headless Termux Linux environment configured with wake locks, process supervision, reverse tunneling to a custom domain, and lightweight JavaScript/Node.js web servers serving essential daily utilities.

Key Features

Personal file server and remote file management gateway
Automated file download server handling asynchronous web transfers
Custom self-hosted URL shortener service with analytics
JavaScript / Node.js web services and lightweight API backends
Global access over custom domain with SSL termination
Built-in battery backup: smartphone battery acts as an uninterruptible power supply (UPS)

Screenshots & Previews

Personal Server — Phone-Powered Infrastructure preview 1

Technical Architecture

ARM64 Linux userland running within Termux; process supervision via PM2/termux-services; dynamic DNS and encrypted reverse tunnel linking local ports to public custom domains.

Technical Challenges & Solutions

The Technical Challenge

Android OS aggressive background task killing (Doze mode) and dynamic IP changes across local Wi-Fi reconnects.

How I Solved It

Disabled battery optimization for Termux, configured persistent wakelocks via termux-api, and routed traffic through automated reverse tunnel daemons that auto-reconnect upon network renegotiation.

Key Insights & Takeaways

Deepened practical systems administration skills in Linux environments, network routing, firewall configurations, and running resilient microservices on resource-constrained ARM architectures.

Other Projects You Might Explore

View All Projects →