Repository navigation
Description
What happened
First Windows install never starts, and the message does not say why.
- On Windows 11 Pro x64 (10.0.26200) with Hyper-V/WSL2/Docker Desktop present, run the official installer:
irm https://devswha.github.io/herdr-web-ui/install.ps1 | iex - The plugin installs (v0.3.47,
herdr plugin install --ref v0.3.47 --yes), preflight and build pass. - Expected: the app answers on
http://127.0.0.1:7317. - Actual: the installer ends with
The app did not start within 25 seconds. See: herdr plugin log list, exit 1. Nothing is listening on 7317, sohttp://127.0.0.1:7317is a connection error.Settings → Updatesetc. never become reachable.
Cause: on this PC, port 7317 is inside a Windows excluded port range, so Bun.serve fails with EADDRINUSE although no process is listening. Windows reserves those ranges for Hyper-V/WSL2/Docker (netsh interface ipv4 show excludedportrange protocol=tcp):
시작 포트 끝 포트
7038 7137
7152 7251
7311 7410 <-- 7317 (herdr web ui's default) is in here
7411 7510
7732 7831
...
vmcompute, hns and WSLService are running on this PC.
The plugin's own log has the real error, only there:
herdr-web-ui listening on http://127.0.0.1:7317
Managed updates: automatic checks, install from Settings
Bridge exited unexpectedly (58).
867 | onStructureChange: () => broadcastAll({ type: "session-changed" }),
872 | const server = Bun.serve<SocketData>({
^
error: Failed to start server. Is port 7317 in use?
syscall: "listen",
errno: 0,
code: "EADDRINUSE"
at createServer (.../server/index.ts:872:22)
Bun v1.4.0-canary.1+52bf09cb1 (Windows x64)
...
error: The new bridge failed its startup health check.
at launch (.../server/supervisor.ts:95:15)
A 3-line bind test on the same PC (nothing listening on any of these ports, netstat -ano | findstr 7317 empty, Get-NetTCPConnection -LocalPort 7317 empty):
| port | result |
|---|---|
| 7317 | EADDRINUSE |
| 7417 | EADDRINUSE |
| 17317 | binds fine |
Workaround that fixed it here: write PORT=17317 to the plugin's settings file, then start again — the app comes up at once.
%APPDATA%\herdr\plugins\config\devswha.herdr-web-ui\env
PORT=17317
herdr plugin action invoke devswha.herdr-web-ui.start-windows
# -> running http://127.0.0.1:17317
# GET /api/health -> {"ok":true,"herdr":{"version":"0.9.2-preview.2026-09-29-8e78f929d8f0","protocol":22,
# "terminal_attach":false,"terminal_mirror":true},"auth":{"required":false,"authenticated":true,"via":"local","role":"drive"}}After that the sidebar shows the local panes (omp, omo, claude) and the terminal lens mirrors correctly on Windows.
How to reproduce without herdr web ui
netsh interface ipv4 show excludedportrange protocol=tcp # find a range containing 7317
# then, from a Bun checkout of this repo:
bun -e "Bun.serve({ port: 7317, hostname: '127.0.0.1', fetch: () => new Response('ok') })"
# -> error: Failed to start server. Is port 7317 in use? / code: "EADDRINUSE"Suggestions (your call)
- Name the real failure. The installer and
plugin.ps1 startreport "did not start within 25 seconds" while the cause is one line at the end ofserver.log. Echoing that line (or the last lines) in the failure message would have saved this whole hunt.plugin.ts startalready has the log path; the Windows path could read its tail. - Check the port before starting. In
scripts/preflight.ps1(or inplugin.ts starton win32), try to bindHOST:PORTonce and, when it fails, print the Windows-specific reason and how to look it up (netsh interface ipv4 show excludedportrange protocol=tcp, and that Hyper-V/WSL2/Docker reserve ranges), rather than failing 20 s later as "not healthy". - Fall back to a free port when the default is reserved. Picking the first port from a short list (or
PORT..PORT+50) that actually binds, writing it to the pid/status file and printing the address it settled on, would make the default install work on these PCs. This is the same class of failure as "port 7317 in use" from another app, which the guide already lists as a reason to setPORT. - Related: the Tailscale helper's suggested HTTPS ports include 7317 (
server/tailscale.ts,HTTPS_PORTS), so on a PC like this the suggestedtailscale serve --https=7317command is also a dead end.
How often
Every time on a PC whose excluded port ranges contain 7317 (this one does, and the ranges survive reboots; they shift only when Hyper-V/WSL/Docker reconfigure their reservations).
herdr web ui version
0.3.47 (Windows support starts at 0.3.44, so there is no earlier Windows version to compare; 0.3.44 was not tried)
How it runs
herdr plugin
Server PC
Windows 11 Pro 10.0.26200 x64, herdr 0.9.2-preview.2026-09-29-8e78f929d8f0 (native Windows x64), Bun 1.4.0, Git 2.55.0.windows.2. Hyper-V/vmcompute + hns + WSLService running (WSL2 Ubuntu and Docker Desktop installed).
Device and browser
Same PC, Chrome, browser tab. (Nothing could be opened before the port change: 7317 answered nothing.)
How the device reaches the server
This PC (localhost)
How it signs in
Nothing (this PC)
Agent and PC
omp, omo and Claude Code panes on the local Windows PC (all three appear in the sidebar after the workaround). Not related to the failure — no agent had to run for it to happen.
Screenshots or logs
server.log and the netsh output are inlined above. The plugin action log for the failed start (herdr plugin log list) contains only:
action_id: start-windows, status: failed, exit_code: 1,
stderr: Could not start herdr web ui. See C:\Users\<user>\AppData\Local\herdr\plugins\devswha.herdr-web-ui\server.log
Activity
fix(install): start on another port when 7317 cannot be opened, and s…