<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Adarsh on Medium]]></title>
        <description><![CDATA[Stories by Adarsh on Medium]]></description>
        <link>https://medium.com/@adarshkumar4145?source=rss-91fc55f71047------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KEzY9LpkKGOr4-0c</url>
            <title>Stories by Adarsh on Medium</title>
            <link>https://medium.com/@adarshkumar4145?source=rss-91fc55f71047------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 10:09:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adarshkumar4145/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A free cloud VM in front, an old laptop behind]]></title>
            <link>https://medium.com/@adarshkumar4145/a-free-cloud-vm-in-front-an-old-laptop-behind-faad978e12de?source=rss-91fc55f71047------2</link>
            <guid isPermaLink="false">https://medium.com/p/faad978e12de</guid>
            <category><![CDATA[home-server]]></category>
            <category><![CDATA[cost-savings]]></category>
            <category><![CDATA[cloud-cost-optimization]]></category>
            <category><![CDATA[self-hosting]]></category>
            <category><![CDATA[free-hosting]]></category>
            <dc:creator><![CDATA[Adarsh]]></dc:creator>
            <pubDate>Sun, 29 Nov 2026 08:32:43 GMT</pubDate>
            <atom:updated>2026-11-29T08:32:43.223Z</atom:updated>
            <content:encoded><![CDATA[<p>How I made a compute-heavy web app public without paying for a big server: the tiny free VM only shows the website, and every heavy request travels through an encrypted WireGuard tunnel to a laptop at home that runs the real backend in Docker. So I took some help from Claude code to help me getting started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_OZ20QsnPaoDVi6kd6SaTA.png" /></figure><h3>The problem: Good hardware at home, no way in from the internet</h3><p>My app processes satellite data: a worker that needs gigabytes of RAM, a MongoDB database and a file store. Renting that in the cloud costs money every month. My laptop handles it easily. The hard part is reaching it.</p><ol><li><strong>No public address: </strong>Home and mobile networks often share one public IP among many customers (CGNAT), so nobody can connect in.</li><li><strong>The IP keeps changing: </strong>The router gets a new address every few days, so even port forwarding breaks.</li><li><strong>Opening ports is risky: </strong>A port forwarded to a home PC invites every scanner on the internet straight to it.</li></ol><p>The way around all three: <strong>let the laptop connect out</strong>. Outgoing connections work from any network. If the laptop keeps a tunnel open to a server that does have a fixed public IP, that server can hand requests back down the tunnel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*37KeiqyClUEDB9AtwKOjEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PkMGhilV5dxAV_dZi-hsHw.png" /></figure><h3>Step by step: One request, start to finish</h3><ol><li>The browser calls the public address.</li><li>HTTPS on port 443 reaches the cloud VM, the only machine the internet can see. A Let’s Encrypt certificate makes it a normal, trusted site.</li><li>nginx answers what it can by itself.</li><li>The web app (HTML, JavaScript, images) is static and lives on the VM, so the page loads even when the laptop is off. Rate limits and fail2ban turn away abuse here, far from home.</li><li>API calls go into the tunnel.</li><li>For /api/… nginx proxies to 10.99.0.2:8000, a private address that exists only inside WireGuard. The kernel encrypts the packet and sends it as UDP to wherever the laptop last spoke from.</li><li>The laptop receives it in the API’s own network.</li><li>The tunnel runs as a small Docker container that shares the API container’s network namespace. Inside that namespace, the API simply has a second address, 10.99.0.2. Nothing is published on the laptop itself.</li><li>The API does the heavy work and answers back the same way.</li><li>It reads MongoDB and the file store on Docker’s internal network, hands long jobs to the worker, and its reply travels back through the tunnel, nginx and HTTPS to the browser.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wcaZB5Y-twUZ-jx5hTPUkA.png" /></figure><h3>Going online and offline: Cutting the backend off, and plugging it back in</h3><p>Because the laptop opens the tunnel, the laptop also decides when the app is live. Stopping one container disconnects the backend from the internet completely, while the website stays up and tells people so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SLYL1azh2N73_zwt38aaxg.png" /></figure><p>The same logic covers accidents. If the laptop sleeps, reboots or switches from Wi-Fi to a phone hotspot, the tunnel drops, users see the offline banner, and everything resumes once the laptop’s next keepalive gets through.</p><h3>Is it worth it?: What you get and what you give up</h3><p>Good:</p><ul><li>16 GB of RAM for the price of a free 1 GB VM</li><li>A stable public address and HTTPS, even behind CGNAT</li><li>No open ports at home; the database is never exposed</li><li>One command to take the backend offline</li></ul><p>Limits:</p><ul><li>The laptop has to stay on, plugged in and awake</li><li>Downloads are limited by your home upload speed</li><li>No redundancy: a power cut is downtime</li><li>Best for testing, demos and side projects, not production</li><li>Best for testing, demos and side projects, not production</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faad978e12de" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>