Agent and integrated terminal can’t reach LAN hosts on macOS: no Local Network permission (EHOSTUNREACH)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

On macOS, connections from Cursor to private-range LAN hosts fail instantly with EHOSTUNREACH (“No route to host”). This affects agent-run commands and the integrated terminal. The same ssh from iTerm or Terminal.app connects fine.

Root cause appears to be macOS Local Network Privacy:

  • Cursor.app’s Info.plist has no NSLocalNetworkUsageDescription, so macOS never prompts, and Cursor never appears under Privacy & Security → Local Network. There is no way for the user to grant access.
  • Agent commands run via a bundled node binary signed by the Node.js Foundation (Team ID HX7739G8FX). It is bundle-less, reparented to launchd (PPID 1), and outside Cursor’s responsible-process chain. Renderer and GPU helpers register as the generic bundle id com.github.Electron.helper.
  • The only LAN host reachable is the Mac’s configured DNS server, which macOS exempts. Users end up tunneling SSH through their DNS box to reach their own network.
  • This is not Cursor’s sandbox. ~/.cursor/cli-config.json has sandbox.mode set to disabled.

Still reproduced on Cursor 3.26.16 / macOS 26.7.1. Staff already confirmed the missing plist key on an earlier build in Integrated terminal cannot access local network devices on macOS — missing NSLocalNetworkUsageDescription (last checked 3.23.13, not actively worked). This report adds the agent process-attribution problem: adding NSLocalNetworkUsageDescription to Cursor.app may not cover agent commands unless those processes are attributed to Cursor’s bundle.

Steps to Reproduce

  1. On macOS, use a LAN host that Terminal.app can reach (for example 10.0.0.4).
  2. In Cursor’s integrated terminal, or from an agent command, SSH to that host, or run nc -vz against 10.0.0.4 on port 22.
  3. The connection fails instantly with “No route to host” (EHOSTUNREACH).
  4. Cursor never prompts for Local Network access, and Cursor does not appear under Privacy and Security, Local Network.
  5. The same SSH from Terminal.app or iTerm succeeds.

Expected Behavior

Cursor requests Local Network permission (add NSLocalNetworkUsageDescription to Info.plist, as upstream VS Code did in vscode#308457) and attributes agent and terminal processes to Cursor’s bundle so the grant applies to both.

Operating System

MacOS

Version Information

IDE:
Version: 3.26.16
VSCode Version: 1.128.0
Commit: 8fcb8ace5c73fa31f2e2707fd6783160e4ed3e40
Date: 2026-10-21T09:02:57.211Z
Quality: stable

OS: macOS 26.7.1 (Build 25G241)

Additional Information

Verified locally on this install:

  • NSLocalNetworkUsageDescription is absent from /Applications/Cursor.app/Contents/Info.plist. NSBonjourServices is also absent.
  • Bundled node: /Applications/Cursor.app/Contents/Resources/app/resources/helpers/node
    Authority: Developer ID Application: Node.js Foundation (HX7739G8FX)
    Identifier: node
    Info.plist: not bound
    TeamIdentifier: HX7739G8FX
  • Cursor.app TeamIdentifier: VDXQ22DGB9, bundle id com.todesktop.230313mzl4w4u92
  • Cursor Helper (Renderer) and Cursor Helper (GPU): CFBundleIdentifier com.github.Electron.helper
  • Main Cursor Helper: com.todesktop.230313mzl4w4u92.helper
  • ~/.cursor/cli-config.json: sandbox.mode = disabled, sandbox.networkAccess = user_config_with_defaults

Upstream reference: fix: Add NSLocalNetworkUsageDescription to Info.plist by deepak1556 · Pull Request #308457 · microsoft/vscode · GitHub

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey @Norman_Garrett,

Cursor’s macOS app still doesn’t declare Local Network access in its Info.plist, so macOS never shows the prompt and Cursor never appears under System Settings > Privacy & Security > Local Network. That’s still the case in the newest builds, and it’s the same issue discussed in this earlier thread. I don’t have a timeline for the fix yet but I’ve reflagged it for the team!

Your point about agent commands is also correct. They run in a separate background helper that uses the bundled node binary, so adding the key to the app may not be enough for agent commands on its own. That detail matters for how this gets fixed.

In the meantime, the most reliable workaround is to quit Cursor completely (Cmd+Q) and start it from a terminal app that already has Local Network access:

/Applications/Cursor.app/Contents/MacOS/Cursor &

macOS then treats Cursor’s network access as coming from that terminal app. Other users report this works for the integrated terminal and SSH. For agent commands, check Activity Monitor after quitting and make sure no leftover node process from Cursor is still running before you relaunch.

If that doesn’t work for you, toggling Local Network off and on for any other app in that settings pane sometimes lets Cursor through. Running the LAN-bound commands from Terminal.app or iTerm also works.

If launching from the terminal fixes the integrated terminal but not agent commands, please reply here and say so.