[BUG] Cowork VM uses DNS from disconnected adapter on Windows, causing API unreachable
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Cowork workspace fails to start on Windows because the HNS NAT network/endpoint is assigned DNS from a disconnected USB Ethernet adapter instead of the active Wi-Fi adapter, api.anthropic.com fails through those stale servers.
- OS: Windows 11 Pro
- Claude Desktop: 1.1.2685.0
- Active DNS (Wi-Fi): 75.75.75.75, 75.75.76.76
- Incorrect DNS selected for cowork endpoint (from disconnected Ethernet adapter)
What Should Happen?
Cowork should use DNS from the active network path (Wi-Fi in this case), resolve api.anthropic.com, and complete workspace startup successfully.
Error Messages/Logs
1. Failed to start Claude's workspace - VM service not running. The service failed to start.
2. Failed to start Claude's workspace - Can't reach the Claude API from Claude's workspace.
[VM:start] Startup complete
[VM] API reachability: PROBABLY_UNREACHABLE
[VM] API reachability: UNREACHABLE
[VM:network] API is unreachable
Steps to Reproduce
- Windows machine has Wi-Fi active and a disconnected Ethernet/USB adapter with stale DNS configured.
- Observe workspace fails with API unreachable.
- Inspect HNS endpoint/network DNS for cowork-vm-* and see DNS inherited from disconnected adapter.
Claude Model
Other
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude Desktop 1.1.2685.0 (Cowork workspace feature).
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
A host-side workaround succeeded:
- force correct DNS on cowork-vm-nat HNS network (75.75.75.75, 75.75.76.76)
- recreate cowork endpoint
- then Cowork starts successfully
Post-fix validation:
Network DNS: 75.75.75.75, 75.75.76.76
Resolve test: PASS
Request: please fix DNS source selection during cowork HNS network creation so disconnected adapters are ignored.
7 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
We diagnosed and fixed this exact issue. Root cause is
cowork-svc.exereading DNS from a disconnected Microsoft Wi-Fi Direct Virtual Adapter (192.168.49.1) instead of the active Wi-Fi adapter.Full root cause analysis, working fix, and suggested code fix here:
https://github.com/anthropics/claude-code/issues/24918#issuecomment-3888119115
Confirming same root cause: empty DNSServerList on HNS network
Environment:
Disconnected adapters present:
Root cause confirmed: The HNS NAT network cowork-vm-nat is created with no IPv4 DNS at all:
Meanwhile the host resolves and connects fine:
VM logs show it boots fine but fails API reachability:
Attempted workarounds (all failed):
Conclusion: The DNSServerList field is never populated during HNS network creation regardless of adapter state. Unlike the OP's case where DNS was inherited from a wrong adapter, in this case no DNS is inherited at all. The fix needs to be in Claude's network creation code to explicitly set DNS from the active adapter.
✅ Workaround: Fix DNS on unused Ethernet adapter (confirmed working)
TL;DR: If you're on Wi-Fi and have an unused Ethernet adapter with stale/wrong DNS,
cowork-svc.exegrabs DNS from that adapter instead of your active Wi-Fi. Fix: set the Ethernet adapter's DNS to match your Wi-Fi, disable it permanently, then reset Claude.Environment
1.1.1.1,8.8.8.8192.168.0.254Symptoms
Exact same pattern as this issue:
Diagnosis
1. Check what DNS the VM is using (Admin PowerShell):
Result showed:
DNSServerList: 192.168.0.254← wrong, grabbed from unused Ethernet2. Check actual host DNS:
Result showed:
DNS Servers: 1.1.1.1(from Wi-Fi) and192.168.0.254(from disconnected Ethernet)3. Identify which adapter has the bad DNS:
Confirmed
Ethernetadapter had192.168.0.254,Wi-Fihad1.1.1.1.Fix (all commands in Admin PowerShell)
Step 1: Re-enable Ethernet temporarily to configure it:
Step 2: Set its DNS to match your Wi-Fi (use your actual Wi-Fi DNS):
Step 3: Verify it took:
Step 4: Disable Ethernet again:
Step 5: Prevent Ethernet from re-enabling on restart:
Step 6 (optional, extra safety): Disable at device level:
Step 7: Clean up stale HNS resources:
Step 8: Kill Claude completely:
Step 9: Reset Claude app data:
Go to Settings → Apps → Installed apps → Claude → Advanced options → Repair (or Reset if Repair doesn't work). This forces a clean VM rebuild.
Step 10: Reopen Claude Desktop and launch Cowork.
The VM should now create a fresh HNS endpoint with the correct DNS. Cowork connected to the API successfully after this.
Why this works
cowork-svc.exedoesn't filter for the active network adapter when selecting DNS — it picks up DNS from whichever adapter it finds, including disabled/disconnected ones. By setting the Ethernet adapter's DNS to match our Wi-Fi DNS, even if the service grabs DNS from the wrong adapter, it still resolvesapi.anthropic.comcorrectly.Root cause (for Anthropic)
cowork-svc.exeshould filter adapters by operational status (Up) and connection status (Connected) when selecting DNS for the HNS network configuration. Disconnected and disabled adapters should be ignored.Related issues
**FIX*
Ensure Hyper-V is selected and Date/Time is synced and on auto first. Then fix the DNS issue.
Fix: Cowork "Can't reach Claude API" on Windows 10/11 Home — DNS Mismatch from Disconnected Adapter
Environment: Windows 10 Home, Build 26200.7840 | Claude Desktop v1.1.3189 | Max Plan
Root Cause
The Cowork VM inherits DNS from a disconnected network adapter instead of the active Wi-Fi adapter. In my case, a disconnected Realtek USB Ethernet adapter had stale DNS (
10.66.152.1), while my active Wi-Fi used1.1.1.1/8.8.8.8. The VM couldn't resolveapi.anthropic.comso it showed API UNREACHABLE.Additionally, the SharedAccess (ICS) service can interfere with Hyper-V NAT routing.
Diagnosis
You can confirm this is your issue by running these in Admin PowerShell:
If the VM's DNSServerList doesn't match your Wi-Fi DNS, and you have a disconnected adapter, this fix is for you.
Fix (Step-by-Step)
Run all commands in PowerShell as Administrator.
Step 1: Identify the bad adapter
Look for a disconnected adapter whose DNS doesn't match your Wi-Fi DNS.
Step 2: Disable the disconnected adapter
Step 3: Disable SharedAccess (ICS) service
Step 4: Remove the existing Cowork network (forces clean rebuild)
Step 5: Enable IP forwarding on the Cowork adapter (if it exists)
Step 6: Full reboot
Step 7: Test Cowork
After reboot, open Claude Desktop and go to the Cowork tab and run any task. It should work.
Step 8: Verify the fix
The DNSServerList should now match your Wi-Fi DNS.
If Cowork Breaks Again
Re-run Steps 2 and 3, then reboot. This can happen if:
What Anthropic Should Fix
The Cowork VM network setup should:
Related issues: #25144, #25088, #24918, #25155, #25663
This should have been fixed in the same version that fixed #24918, we switched out networking to a system that doesn't use HNS provided DNS settings and should use whatever your active network adapter is configured to use.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.