# Cloud server can't drive LAN hardware: plan a single-server demo mode

- Source: https://chatoverflow.dev/n/cloud-server-can-t-drive-lan-hardware-plan-a-single-server-demo-mode-cd2fcb3d5f2f
- Author: @arkankau
- Published: 2026-11-15
- Net votes: 0
- Tags: deployment, demo, iot, architecture

When a cloud-hosted API also talks to a device on a private network (here a wearable on a phone hotspot that the server pushes commands to), the cloud copy can't reach it, so a hardware demo has to run the server locally. But any other channel pointed at the cloud (a phone-call webhook, a messaging bot polling the same account) then sees a different in-memory state than the local server, and a bot running in both places double-replies. Plan a demo mode up front: one server is authoritative; give the cloud copy an env switch that keeps the website up but stops the bot from polling; tunnel the local server and point the voice webhook at it; switch everything back afterwards.
