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

Open
opened 2026-02-16 18:10:06 -05:00 by yindo · 10 comments
Owner

Originally created by @jakiechris on GitHub (Feb 4, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @jakiechris on GitHub (Feb 4, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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_
yindo added the windowsbugweb labels 2026-02-16 18:10:06 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 4, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7278: Error: Unable to connect. Is the computer able to access the url?
  • #9788: Offline deployment with same "Unable to connect" error
  • #10798: Intranet Windows desktop startup bug with same error
  • #8824: Desktop version regression with "Unable to connect" error
  • #10945: Windows intranet with "Unable to connect" errors during tool execution
  • #9380: CLI startup failure with "Unable to connect" error
  • #10059: Windows localhost connectivity issue with different ports
  • #10166: Desktop unable to connect to serve with password authentication
  • #10955: Windows client unable to connect to serve on Linux

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 4, 2026): This issue might be a duplicate of existing issues. Please check: - #7278: Error: Unable to connect. Is the computer able to access the url? - #9788: Offline deployment with same "Unable to connect" error - #10798: Intranet Windows desktop startup bug with same error - #8824: Desktop version regression with "Unable to connect" error - #10945: Windows intranet with "Unable to connect" errors during tool execution - #9380: CLI startup failure with "Unable to connect" error - #10059: Windows localhost connectivity issue with different ports - #10166: Desktop unable to connect to serve with password authentication - #10955: Windows client unable to connect to serve on Linux Feel free to ignore if none of these address your specific case.
Author
Owner

@jakiechris commented on GitHub (Feb 4, 2026):

i> This issue might be a duplicate of existing issues. Please check:

Feel free to ignore if none of these address your specific case.

none of these are similar to my issue

@jakiechris commented on GitHub (Feb 4, 2026): i> This issue might be a duplicate of existing issues. Please check: > > * [Error: Unable to connect. Is the computer able to access the url? #7278](https://github.com/anomalyco/opencode/issues/7278): Error: Unable to connect. Is the computer able to access the url? > * [When deploying open-source code offline, encountering the error message: "Unable to connect. Is the computer able to access the URL?" #9788](https://github.com/anomalyco/opencode/issues/9788): Offline deployment with same "Unable to connect" error > * [内网Windows桌面版程序启动bug #10798](https://github.com/anomalyco/opencode/issues/10798): Intranet Windows desktop startup bug with same error > * [The latest desktop version v1.1.23 failed to launch due to 'Unable to connect. Is the computer able to access the url', pre versions is fine! #8824](https://github.com/anomalyco/opencode/issues/8824): Desktop version regression with "Unable to connect" error > * [[Windows] Raw ANSI escape codes flooding console & "Unable to connect" errors during tool execution (v1.1.36) #10945](https://github.com/anomalyco/opencode/issues/10945): Windows intranet with "Unable to connect" errors during tool execution > * [CLl无法正常启动 提示Unable to connect. Is the computer able to access the url #9380](https://github.com/anomalyco/opencode/issues/9380): CLI startup failure with "Unable to connect" error > * [【Windows】Error: 无法连接到服务器。是否有服务器正在 `http://127.0.0.1:53770` 运行? at bootstrap (http://tauri.localhost/assets/index-BRPGj5-C.js:1750:23295) #10059](https://github.com/anomalyco/opencode/issues/10059): Windows localhost connectivity issue with different ports > * [OPENCODE_SERVER_PASSWORD设置时,远程启动opencode server,desktop无法连接。 #10166](https://github.com/anomalyco/opencode/issues/10166): Desktop unable to connect to serve with password authentication > * [windows客户端为什么连不上linux服务器上用opencode serve启动的服务 #10955](https://github.com/anomalyco/opencode/issues/10955): Windows client unable to connect to serve on Linux > > Feel free to ignore if none of these address your specific case. none of these are similar to my issue
Author
Owner

@LeonMueller-OneAndOnly commented on GitHub (Feb 5, 2026):

Opencode does not start an http server by default anymore. Therefore running ˋopencodeˋ does not allow you to open the webUI. This change was done due to valid security concerns.

Try running:
opencode --hostname localhost --port 4096

And then open localhost:4096 in your browser.

@LeonMueller-OneAndOnly commented on GitHub (Feb 5, 2026): Opencode does not start an http server by default anymore. Therefore running ˋopencodeˋ does not allow you to open the webUI. This change was done due to valid security concerns. Try running: opencode --hostname localhost --port 4096 And then open localhost:4096 in your browser.
Author
Owner

@jakiechris commented on GitHub (Feb 5, 2026):

Opencode does not start an http server by default anymore. Therefore running ˋopencodeˋ does not allow you to open the webUI. This change was done due to valid security concerns.

Try running: opencode --hostname localhost --port 4096

And then open localhost:4096 in your browser.

thks but "opencode serve" is truely a web server as i tested on outranet, pls see:

Image
@jakiechris commented on GitHub (Feb 5, 2026): > Opencode does not start an http server by default anymore. Therefore running ˋopencodeˋ does not allow you to open the webUI. This change was done due to valid security concerns. > > Try running: opencode --hostname localhost --port 4096 > > And then open localhost:4096 in your browser. thks but "opencode serve" is truely a web server as i tested on outranet, pls see: <img width="1353" height="687" alt="Image" src="https://github.com/user-attachments/assets/390d268c-6908-41f2-8fbd-1eea8c6901bd" />
Author
Owner

@jakiechris commented on GitHub (Feb 5, 2026):

the issue is that :

1: start opencode serve, open http://127.0.0.1:4096 on browser:
1.1: on intranet, error:Unable to connect. Is the computer able to access the URL?
1.2: on outranet, normal webpage opened

2: on intranet, browser open http://127.0.0.1:4096/global/health can see the normal return says "stauts ok"

@jakiechris commented on GitHub (Feb 5, 2026): the issue is that : 1: start opencode serve, open http://127.0.0.1:4096 on browser: 1.1: on intranet, error:Unable to connect. Is the computer able to access the URL? 1.2: on outranet, normal webpage opened 2: on intranet, browser open http://127.0.0.1:4096/global/health can see the normal return says "stauts ok"
Author
Owner

@jakiechris commented on GitHub (Feb 6, 2026):

i used claudecode+glm4.7 to analyze opencode and bun's source code,
the bug may come from about server.ts line number 553, it tried to visit outranet url: app.opencode.ai

@jakiechris commented on GitHub (Feb 6, 2026): i used claudecode+glm4.7 to analyze opencode and bun's source code, the bug may come from about server.ts line number 553, **it tried to visit outranet url: app.opencode.ai**
Author
Owner

@jakiechris commented on GitHub (Feb 8, 2026):

the truth is that when visiting http://127.0.0.1:4096 on browser ,the opencode server has to visit http://app.opencode.ai to fetch webpages resource first. then cause 500 internal errro on intranet

@jakiechris commented on GitHub (Feb 8, 2026): the truth is that when visiting http://127.0.0.1:4096 on browser ,the opencode server has to visit http://app.opencode.ai to fetch webpages resource first. then cause 500 internal errro on intranet
Author
Owner
@jakiechris commented on GitHub (Feb 8, 2026): https://github.com/anomalyco/opencode/blob/19b1222cd85060f7b0999b99586e93f84821b94b/packages/opencode/src/server/server.ts#L536
Author
Owner

@noneissue commented on GitHub (Feb 9, 2026):

+1

@noneissue commented on GitHub (Feb 9, 2026): +1
Author
Owner

@amitok2 commented on GitHub (Feb 10, 2026):

+1

@amitok2 commented on GitHub (Feb 10, 2026): +1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8495