published fresh until

Claude Code in WSL2 can't find my JetBrains IDE: what works now

Summary If Claude Code cannot detect a JetBrains IDE from WSL2, run it from the IDE terminal or allow WSL2 traffic through Windows Firewall or use mirrored networking; the issue is closed. The official page also gives a WSL command setting (checked against docs).

Not for VS Code extension Node.js errors; see vscode-claude-extension-node-version-required

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

No available IDEs detected. Make sure your IDE has the Claude Code extension or plugin installed and is running. /ide found no IDE to connect to. First action: run claude from the IDE's own integrated terminal, which connects on its own; for a JetBrains IDE on Windows with Claude Code in WSL2, allow WSL2 traffic through Windows Firewall or switch to mirrored networking; for VS Code or Cursor see the VS Code branch below (checked 2026-10-31, Claude Code docs; untested here). Not for: VS Code extension Node.js errors; see vscode-claude-extension-node-version-required.

The problem

Running claude inside WSL2 while the JetBrains IDE runs on Windows, /ide shows No available IDEs detected. The GitHub issue was opened by masda70 on 2025-05-22 (Windows 10, WSL 2.2.4, Ubuntu 22.04, PyCharm, plugin 0.1.3-beta). The issue was closed as completed on August 23, 2025.

How the issue ended

A Claude Code collaborator (hackyon-anthropic) answered through mid-2025: the plugin got WSL fixes in 0.1.6-beta (31 May) and a later release that translates paths between WSL and Windows (11 June) and works without mirrored networking. When closing on 2025-08-23 he said the original WSL2 detection cause should be resolved, pointed to a troubleshooting section in the docs, and recommended the native Windows (PowerShell) install of Claude Code with the IDE as more reliable. In the comments, one user said 0.1.8-beta still worked only with mirrored networking, another that it failed without it, and in August 2025 others still needed mirrored networking. A commenter confirmed 0.1.8-beta with Claude Code 1.0.18 worked without extra setup, while others still failed, so the answer was not universal.

What the docs say today

The official JetBrains page (checked 2026-10-31) says No available IDEs detected on WSL2 is usually caused by WSL2's NAT networking or Windows Firewall blocking the connection to the IDE on the Windows host (WSL1 is not affected). Two fixes:

1. Firewall rule (recommended, keeps your networking mode). In WSL run hostname -I and take the first two segments plus .0.0/16 as your subnet (for 172.21.123.45, that is 172.21.0.0/16). In an Administrator PowerShell run New-NetFirewallRule -DisplayName "Allow WSL2 Internal Traffic" -Direction Inbound -Protocol TCP -Action Allow -RemoteAddress 172.21.0.0/16 -LocalAddress 172.21.0.0/16, adjusting the range. Restart the IDE and Claude Code. 2. Mirrored networking (Windows 11 22H2 or later). In your Windows user's .wslconfig add [wsl2] and networkingMode=mirrored, then run wsl --shutdown.

Other documented points: start claude from the project root; for launching from the plugin, set the plugin's Claude command to wsl -d Ubuntu -- bash -lic "claude" (use your distribution name). Find Claude command under Settings → Tools → Claude Code [Beta]. The docs warn that the plugin setting "Accept connections from all network interfaces" exposes an unencrypted local port, so prefer mirrored networking over that setting.

VS Code and Cursor branch

Documented on the VS Code page (checked 2026-10-31):

1. In the editor's integrated terminal run claude; it integrates automatically. From an external terminal, run /ide to connect to VS Code. 2. The extension needs VS Code 1.94.0 or later, and it does not work in Restricted Mode, so check workspace trust. Try Developer: Reload Window and temporarily disable other AI extensions. 3. The extension runs a local server on 127.0.0.1 at a random port from 10000 to 65535 and writes a lock file under ~/.claude/ide/ (under $CLAUDE_CONFIG_DIR/ide/ if that is set). A missing lock file would suggest the server did not start (an inference, not stated in the docs); the docs name Claude Code: Show Logs for diagnostics. 4. Installing the extension does not put claude on your PATH; install the standalone CLI for external terminals.

Reported case: issue 14489 by lhanks (Dec 2025): Windows, CLI 2.0.72, VS Code and Cursor, same full message, no lock files, no listening ports in the 42000 to 44000 range, claude doctor clean. The reporter suspected the extension "appears to not be starting its WebSocket server", and tried a Claude Process Wrapper pointing to claude.cmd, adding Cursor to PATH and a firewall rule for ports 42000 to 44999; none was reported to help. A bot closed it as a duplicate of issue 13447, with no maintainer diagnosis. The docs describe a random port, so a fixed port-range rule is not a documented fix.

Commenters' version of the same fix

A commenter (modelD-svg, 16 June 2025) had posted a similar firewall rule for the 172.23 range after the IDE showed disconnected right away, and said it started working again but was not sure the rule was the reason; the docs now carry the rule. Separately, commenters and the docs describe a different fix for the Esc key not interrupting Claude Code in JetBrains terminals: uncheck "Move focus to the editor with Escape" in Settings, Tools, Terminal. The issue's comments do not mention Ctrl+Esc being captured by Windows.

Takeaway

Update both the plugin and the CLI, then apply the firewall rule (or mirrored networking), restart both, and connect with /ide. Run claude update for the CLI update. If you still see nothing, open a new issue with your WSL version and plugin version. The steps come from the docs and are untested. For plugin updates, turn on Enable automatic updates; updates apply when the IDE restarts.

Sources

  • anthropics/claude-code issue 1232: opener, date, closed 2025-08-23 as completed; the maintainer comments of 31 May, 9 June, 11 June and the closing comment; commenters' reports on 0.1.8-beta and mirrored networking; the firewall-rule comment.
  • Claude Code docs, JetBrains IDEs page (code.claude.com/docs/en/jetbrains, checked 2026-10-31): WSL configuration (NAT or Firewall cause, WSL1 unaffected, firewall rule steps, mirrored networking, the Claude command for WSL), the warning about "Accept connections from all network interfaces", and the ESC key section.

Limits

The fixes are untested. The 0.1.6-beta and 0.1.8-beta numbers come from maintainer and commenter comments, not release notes. The closed issue's behavior on current versions is unconfirmed.

Started from a post by @masda70, packaged by the editor. Original post

Subjects

More in documentation

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code in WSL2 can't find my JetBrains IDE: what works now
Summary: If Claude Code cannot detect a JetBrains IDE from WSL2, run it from the IDE terminal or allow WSL2 traffic through Windows Firewall or use mirrored networking; the issue is closed. The official page also gives a WSL command setting (checked against docs).
Copy for agent
get the whatworks thread claude-code-jetbrains-wsl2-no-ide-detected and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-jetbrains-wsl2-no-ide-detected
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks