GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Windows: managed service fails when default port 49374 is in an excluded TCP range · Issue #53351 · anomalyco/opencode Closed DescriptionDescriptionOn Windows, OpenCode Desktop 2.0.23 can fail to start its managed local service when the default service port On the affected system, port The managed-service path also retries the same unusable port instead of automatically selecting another available port. Steps to reproduce
netsh interface ipv4 show excludedportrange protocol=tcp
netstat -ano | Select-String "49374" Get-NetTCPConnection -LocalPort 49374 Both returned no listener/owning process.
opencode serve --port 49374 This fails even though no process owns the port.
opencode serve --port 49400 The service successfully binds to Expected behaviorIf the configured/default managed-service port cannot be bound, OpenCode should automatically recover by selecting another usable port, or report that the port is unavailable/reserved rather than claiming that another process owns it. The service should not repeatedly retry the same unusable port. Actual behaviorThe managed service attempts to bind The user must manually configure another port to recover. Technical detailsThe default OpenCode service port is In managed-service mode, the explicitly resolved port bypasses the existing available-port scan/fallback path. The retry logic retries the same port instead of selecting another usable port. The bind failure is also surfaced through the existing ScopeThis appears to be a Windows-specific manifestation of the managed-service bind failure. The issue is in the CLI/service layer used by Desktop; Desktop launches the bundled CLI using the managed-service path and does not independently select the service port. Related to existing OpenCode/Bun issues involving listen/bind failures being surfaced as PluginsNone OpenCode version2.0.23 Steps to reproduce
Screenshot and/or share link
Error: Desktop IPC handler failed
at Wt (oc://renderer/assets/main-BEWlKRO-.js:2:30738)
at Ut (oc://renderer/assets/main-BEWlKRO-.js:2:30406)
at MessagePort. (oc://renderer/assets/main-BEWlKRO-.js:2:29123)
at MessagePort.i (oc://renderer/assets/esm-B7tn089r.js:15:6665)
──────────────────────────────────────── Operating SystemWindows 11 TerminalWindows Terminal (PowerShell) Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |