Skip to content

Desktop app cannot reach local network Ollama/LLM servers (Electron network sandbox) #33758

Closed as not planned

Description

@samang1

Description

Issue : Desktop app (Electron) cannot reach local network services
Title: Desktop app cannot reach local network Ollama/LLM servers (Electron network sandbox)

Body:

Environment
OpenCode Desktop version: 1.17.10 (Electron 42.3.3)
OS: macOS (Apple Silicon)
Provider: Custom Ollama server at http://192.168.1.250:11434/
Description
The Desktop app's bundled Node.js/Electron network stack cannot reach local network services. The app hangs when trying to connect to an Ollama server on the local network (e.g. 192.168.1.250).

Steps to Reproduce
Set up an Ollama server on another machine on the same network
Configure OpenCode Desktop to use it as a custom provider
Open the Desktop app and select the model
Send a message
Expected
Connection succeeds (same as terminal curl or node -e "require('http')..." work fine).

Actual
Connection hangs. The Electron process uses a sandboxed network service (--service-sandbox-type=network) that appears to block non-localhost network access, even though NSAllowsLocalNetworking = 1 is set in the app's Info.plist.

Notes
The terminal CLI (opencode) works for most providers but has a separate Node.js fetch bug (see related issue)
curl http://192.168.1.250:11434 from the same machine works perfectly
node -e "require('http').get(...)" to the same address works perfectly
Only fetch() (undici) and Electron's network layer fail

Plugins

No response

OpenCode version

1.17.10

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jun 25, 2026

    @github-actions
    Contributor

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

    Additionally, #33757 (filed by the same author) covers the related CLI/undici fetch bug — it may be worth consolidating or cross-referencing these two issues.

  2. github-actions commented on Aug 25, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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