8356
Wx
www-xonecas-io / files
www-xonecas-io / tickets / 1013-dev-server-should-be-reachable-from-the-host.md
2.3 KB
1--- 2id: 1013 3title: dev server should be reachable from the host 4type: bug 5status: done 6priority: p2 7created: 2026-11-08T01:43:32Z 8updated: 2026-11-08T03:58:29Z 9source: human 10moves: 2026-11-08T01:43:44Z inbox doing drag; 2026-11-08T01:43:49Z doing todo drag; 2026-11-08T02:31:20Z todo doing drag; 2026-11-08T02:32:33Z doing blocked agent; 2026-11-08T02:36:17Z blocked todo note; 2026-11-08T02:39:22Z todo doing drag; 2026-11-08T02:40:47Z doing review agent; 2026-11-08T03:58:29Z review done drag 11--- 12 13 14## Notes 15 16- 2026-11-08 02:32Z (agent): Blocked on the VM's firewall. The code side is done. 17 18 DONE: 'site serve' (and 'make serve') listens on :8080, every interface, instead of 127.0.0.1:8080. In the VM, http://192.168.122.10:8080/ answers 200. It's running now. 19 20 BLOCKED: ufw in the VM denies incoming traffic except 22 and 5900, so the host still can't reach 8080. My attempt to open the port was refused by my permission settings ('ufw allow from 192.168.122.0/24 to any port 8080 proto tcp'), and I didn't work around it. Options: 21 (a) Allow that rule for me, or run it yourself. It opens 8080 to the VM's local network only (RECOMMENDED). Your automation recreates the VM, so the rule won't survive a reset unless the automation adds it. 22 (b) No firewall change: from the host, 'ssh -L 8080:localhost:8080 vm', then open http://localhost:8080. Port 22 is already open. 23 24 NOT CHECKED: an actual request from the host. I can only test from inside the VM. 25 26- 2026-11-08 02:36Z (human): Add the the ticket the command you are being blocked. How dumb 27 28- 2026-11-08 02:36Z (agent): The command that was blocked (I piped the sudo password into sudo -S; it's left out here): 29 30 sudo ufw allow from 192.168.122.0/24 to any port 8080 proto tcp comment 'site dev server (1013)' 31 32- 2026-11-08 02:40Z (agent): Done. The firewall rule is now in the VM (ufw rule 3: 8080/tcp ALLOW IN 192.168.122.0/24, comment 'site dev server (1013)'), and I restarted the dev server with 'make serve'. It listens on *:8080 and http://192.168.122.10:8080/ answers 200 from inside the VM. Open http://192.168.122.10:8080/ from the host. 33 34 NOT CHECKED: a request from the host itself. From inside the VM, a request to its own address goes over loopback and skips ufw, so it doesn't test the rule. The rule won't survive a VM reset unless your automation adds it.