<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: RH Shourav</title>
    <description>The latest articles on DEV Community by RH Shourav (@rhshourav).</description>
    <link>https://dev.to/rhshourav</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4110997%2Fcbfb7bd0-a3eb-42c4-8abf-b2433c824512.png</url>
      <title>DEV Community: RH Shourav</title>
      <link>https://dev.to/rhshourav</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rhshourav"/>
    <language>en</language>
    <item>
      <title>How I Built a Zero-Config Hardware Monitor for a Remote Server Behind CGNAT</title>
      <dc:creator>RH Shourav</dc:creator>
      <pubDate>Sat, 05 Sep 2026 10:23:15 +0000</pubDate>
      <link>https://dev.to/rhshourav/how-i-built-a-zero-config-hardware-monitor-for-a-remote-server-behind-cgnat-2dnn</link>
      <guid>https://dev.to/rhshourav/how-i-built-a-zero-config-hardware-monitor-for-a-remote-server-behind-cgnat-2dnn</guid>
      <description>&lt;h1&gt;
  
  
  I built PeekESP: A physical system-metrics dashboard for remote Linux/Windows machines behind CGNAT (No VPN, No Port Forwarding)
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fshouravx%2FPeekESP%2Fmain%2Fimg%2Fdashboard.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fshouravx%2FPeekESP%2Fmain%2Fimg%2Fdashboard.jpeg" alt="PeekESP running on a TTGO T-Display, showing CPU, RAM, storage and network for a machine called Cryo-PC" width="800" height="377"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My home server is in my hometown, but I live in Dhaka—a five-hour drive away. For months, answering the simple question &lt;em&gt;"Is it still running?"&lt;/em&gt; meant SSHing in when I remembered, seeing everything was fine, and closing the terminal.&lt;/p&gt;

&lt;p&gt;The obvious fixes didn't work. The home broadband there is behind &lt;strong&gt;CGNAT&lt;/strong&gt;, so there's no port to forward and nothing can open an inbound connection to that machine. A VPN was the next thought and also wrong: an ESP32 can't join a Tailscale network because it's WireGuard plus a control plane, and none of that has an embedded client.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;PeekESP&lt;/strong&gt;[cite: 1]. It's a tiny ESP32 (LilyGO TTGO T-Display) with a 1.14" display sitting on my desk that shows what my remote machine is doing right now: CPU, RAM, storage, temperature, network throughput, and battery stats[cite: 1].&lt;/p&gt;




&lt;h3&gt;
  
  
  How It Works
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fshouravx%2FPeekESP%2Fmain%2Fimg%2Fdashboard-angle.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fshouravx%2FPeekESP%2Fmain%2Fimg%2Fdashboard-angle.jpeg" alt="The dashboard seen at an angle on the desk" width="799" height="330"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Architecture:&lt;/strong&gt; Both ends dial out to a &lt;strong&gt;Cloudflare Worker&lt;/strong&gt; on the free tier using a Durable Object[cite: 1]. The server pushes, the display polls, and neither needs an inbound port[cite: 1]. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-Config Pairing:&lt;/strong&gt; Setup takes one code[cite: 1]. The device shows 10 characters on first boot (e.g., &lt;code&gt;K7M2-P4QX-9R&lt;/code&gt;), you type them into the desktop app, and the stream ID and auth tokens are derived independently on each side[cite: 1]. The relay never sees it[cite: 1]. No accounts, no ports, no VPNs[cite: 1].&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-Machine Support:&lt;/strong&gt; One code covers several machines now[cite: 1]. My server and laptop share a single display, and I can just swipe between them using the button[cite: 1].&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fshouravx%2FPeekESP%2Fmain%2Fimg%2Fwindows-app.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fshouravx%2FPeekESP%2Fmain%2Fimg%2Fwindows-app.png" alt="The PeekESP settings window" width="436" height="519"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Behind the Scenes: Two Things That Cost Me a Weekend
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The GPIO 0 Deep Sleep Trap:&lt;/strong&gt; You can't wake an ESP32 from deep sleep with GPIO 0 because it's a strapping pin[cite: 1]. Held low across a wake reset, the chip boots into the serial bootloader instead of your firmware, making the board look completely dead[cite: 1].&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Silent Python Failures:&lt;/strong&gt; My temperature reading was broken for weeks and I blamed Windows[cite: 1]. It was actually a missing import throwing an error into a bare &lt;code&gt;except&lt;/code&gt;, coming back as "this machine has no sensor"[cite: 1]. Bare excepts hide exactly the bugs you'd most want to see[cite: 1].&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fshouravx%2FPeekESP%2Fmain%2Fimg%2Fsetup-mode.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fshouravx%2FPeekESP%2Fmain%2Fimg%2Fsetup-mode.jpeg" alt="The device in setup mode showing a QR code" width="800" height="339"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Tech Stack
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Microcontroller:&lt;/strong&gt; ESP32 (LilyGO TTGO T-Display)[cite: 1]&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;UI &amp;amp; Firmware:&lt;/strong&gt; Arduino IDE / PlatformIO, &lt;strong&gt;LVGL 8.3&lt;/strong&gt;[cite: 1]&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Relay:&lt;/strong&gt; Cloudflare Worker (Free tier)[cite: 1]&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agents:&lt;/strong&gt; Dependency-free Python for Linux (DietPi) and Windows[cite: 1]&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; MIT[cite: 1]&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can check out the source code, flashing scripts, and setup guides here:&lt;br&gt;&lt;br&gt;
👉 &lt;strong&gt;&lt;a href="https://github.com/shouravx/PeekESP" rel="noopener noreferrer"&gt;github.com/shouravx/PeekESP&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>arduino</category>
      <category>iot</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
