Skip to content

Desktop app cannot reach LAN IP addresses - EHOSTUNREACH on all 192.168.x.x connections #25908

Closed as not planned

Description

@MadsHT

Description

The OpenCode desktop app cannot connect to MCP servers hosted on a local network. Even when pointing directly at a LAN IP (e.g. http://192.168.1.x:port), the desktop app fails with EHOSTUNREACH. The same configuration works correctly when using the terminal version of OpenCode.

This affects both type: "remote" and type: "local" (with mcp-remote) MCP configurations. The error is consistent regardless of whether a domain name or direct IP is used, confirming the issue is network isolation in the desktop app itself, not DNS resolution.

The terminal version connects successfully using the same opencode.json config, confirming the MCP server is working correctly, and the problem is specific to the desktop app's sandboxed network environment.

Plugins

mcp-remote

OpenCode version

Version 1.14.39 (1.14.39)

Steps to reproduce

  1. Set up an MCP server on your local network (e.g. http://192.168.1.x:8000/)
  2. Configure it in opencode.json as type: "remote" with the direct LAN IP
  3. Launch the OpenCode desktop app
  4. Observe MCP fails with SSE error: TypeError: fetch failed: connect EHOSTUNREACH 192.168.x.x:port
  5. Run the same config using opencode in a terminal - it connects successfully

Screenshot and/or share link

Image

Operating System

macOS 15.7.4 (24G517)

Terminal

N/A - issue is specific to the desktop app

Activity

  1. github-actions commented on Jul 5, 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.

  2. Drjacky commented on Aug 11, 2026

    @Drjacky

    It still happens on 1.18.16

  3. dsaul commented on Aug 11, 2026

    @dsaul

    I can confirm that this also happens for me as well on a Mac Mini running golden gate, but not on a Linux box running nixos.

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