claude-code - 💡(How to fix) Fix Cowork — HNS virtual network never created, NAT rule orphaned, API unreachable (Windows 11 Pro) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46756Fetched 2026-04-12 13:33:52
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Cowork fails with "Can't reach the Claude API from Claude's workspace." Claude Desktop creates the WinNAT rule (cowork-vm-nat) but never creates the HNS virtual network or vEthernet adapter, so the VM has no route to api.anthropic.com.

What Should Happen?

Claude Desktop should create the cowork-vm-nat HNS network AND the NAT rule on startup, producing a working vEthernet adapter the VM can route through

Error Messages/Logs

Steps to Reproduce

Install Claude Desktop on Windows 11 Pro (fresh install) Enable Hyper-V Open Cowork Run hnsdiag.exe list networks — only Default Switch exists, no cowork-vm-nat Run Get-NetNat — cowork-vm-nat NAT rule exists but Store: Local only Run Get-NetAdapter — no vEthernet (cowork-vm-nat) adapter exists Cowork reports API unreachable

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Latest (fresh reinstall today)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

No response

extent analysis

TL;DR

Create the missing HNS virtual network and vEthernet adapter to establish a route to the Claude API.

Guidance

  • Verify that the HNS service is running and properly configured on the Windows 11 Pro system.
  • Check the PowerShell output of hnsdiag.exe list networks to confirm the absence of the cowork-vm-nat network.
  • Run the command Get-NetNat to confirm the existence of the cowork-vm-nat NAT rule, and check its configuration.
  • Attempt to manually create the cowork-vm-nat HNS network and vEthernet adapter using PowerShell commands to test if this resolves the issue.

Example

No specific code example is provided due to the lack of explicit details on the required network configuration.

Notes

The issue seems to be related to a regression in the Claude Desktop application, where it fails to create the necessary HNS virtual network and vEthernet adapter for the VM to route through. The exact commands or configuration required to manually create these components are not specified in the issue.

Recommendation

Apply a workaround by manually creating the necessary HNS virtual network and vEthernet adapter, as the root cause of the issue is likely related to a missing configuration step in the Claude Desktop application.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING