Skip to content

【intranet 】Unable to connect. Is the computer able to access the URL? #12083

Description

@jakiechris

Description

Please don't rush to reference similar errors or close my issue after seeing the title, because I have deeply researched all related issues and tried all proposed solutions, none of which resolved the problem. Therefore, my issue is likely different from others, and the triggering scenario is also different.

My Environment:
Pure intranet (no external network access)
Tested on both Windows and Linux - same issue occurs

Steps to Reproduce:
Pure intranet (no external network access)
After npm install, run opencode and press Enter - it works normally
Run opencode serve, then open http://127.0.0.1:4096 on the same machine
The webpage displays: "Unable to connect. Is the computer able to access the URL?"

My Analysis:

I tested opencode's API endpoints (such as the health endpoint) - they work fine; only the webpage reports the error
I tested on a machine with external network access - everything works perfectly
I traced through the source code and found that this error is reported by the underlying network layer (bun). The current version used by opencode is bun 1.3.5, which should be fairly recent, and I haven't found this error reported in bun's issues

Plugins

No response

OpenCode version

No response

Steps to reproduce

Pure intranet (no external network access)
After npm install, run opencode and press Enter - it works normally
Run opencode serve, then open http://127.0.0.1:4096 on the same machine
The webpage displays: "Unable to connect. Is the computer able to access the URL?"

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions