← All work
Tooling · 2025

Wake-on-LAN Web Server for Office Machine

Overview

A tiny self-hosted web service that powers on an office workstation remotely by sending a Wake-on-LAN magic packet. A single-page UI posts to a small Python HTTP server that triggers the wake.

Why It Exists

The studio needed to remotely boot an office machine (“birou” = office), for example before remoting in, without leaving it running 24/7. A one-click web button beats keeping the machine powered or physically walking over.

What We Built

server.py runs a stdlib http.server that serves index.html and exposes a POST /api/wol endpoint; the endpoint calls the wakeonlan library to broadcast a magic packet to the target MAC address and returns a JSON status. wol.py provides a standalone CLI version for firing the packet directly.

Technologies & Approach

Pure Python with no framework, http.server for the endpoint and the wakeonlan package for the magic packet. Deliberately dependency-light so it can run on almost anything on the LAN.

Outcome / Impact

A working, zero-fuss remote power-on for office hardware. Small but practical internal tooling that demonstrates pragmatic networking automation.

Capabilities Demonstrated

  • Wake-on-LAN / remote power control over a network
  • Minimal self-hosted HTTP services in pure Python
  • Pragmatic internal infrastructure tooling
More work See all →