HeadlinesBriefing favicon HeadlinesBriefing.com

Developer Hosts Website on $1 8-bit Microcontroller

Hacker News •
×

A developer successfully hosted a website on an AVR64DD32 8-bit microcontroller, proving that web hosting doesn't require expensive server hardware. The project uses the $1 chip with 8KB of RAM and 64KB of flash storage, running at 24 MHz. Rather than Ethernet (which requires speeds too fast for the microcontroller), they used Serial Line Internet Protocol (SLIP) over a USB serial connection.

The implementation required manual IPv4 packet handling since the chip lacks a network stack. The developer swapped source and destination addresses in received packets to generate responses, avoiding complex features like packet fragmentation that modern OSes have disabled. TCP proved more challenging—the custom implementation took several days and still has bugs. The HTTP server sends a hardcoded response, which works for a single-page site.

Making the site publicly accessible required routing through a Linux VPS in Helsinki using Wireguard VPN, with requests proxied via a /mcu path. This workaround addresses the lack of publicly routable IPv4 addresses at the developer's location. The project joins other unconventional servers like the "Vape Server" running on a 32-bit MCU pulled from discarded electronics.