WSL workspaces fail with getaddrinfo EBUSY while local Windows workspaces work

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Environment

  • Cursor: 3.23.23 and 3.22
  • Windows 11 x64, build 26100
  • Electron 42.10.0
  • Node.js 24.18.1
  • WSL extension: tested 1.0.13, 1.0.12, 1.0.11 and 0.0.8
  • WSL distro is running normally
    Problem
    Agent/Chat requests fail in every WSL workspace, including a completely empty new folder, with:

[internal] getaddrinfo EBUSY api2.cursor.sh
RetriableError: [internal] getaddrinfo EBUSY api2.cursor.sh

With a clean Cursor profile I also get:

[internal] getaddrinfo EBUSY agentn.global.api5.cursor.sh

Local Windows workspaces on the same machine work correctly.
What I already tested

  • Fresh clone of the repository: same problem
  • Completely empty WSL folder: same problem
  • Different Cursor versions: 3.23.23 and 3.22: same problem
  • Different anysphere.remote-wsl versions: same problem
  • Started Cursor with --disable-extensions: same problem
  • Started Cursor with a completely clean user profile via --user-data-dir: same problem
  • Recreated ~/.cursor-server: same problem
  • Network Diagnostics initially reported streaming buffering, but after switching HTTP compatibility mode the diagnostics became fully green; Agent still fails
  • Resolve-DnsName api2.cursor.sh on Windows succeeds
  • Resolve-DnsName agentn.global.api5.cursor.sh on Windows succeeds
  • getent hosts api2.cursor.sh inside WSL succeeds
  • curl -Iv https://api2.cursor.sh/ inside WSL succeeds and returns HTTP/2 200
  • No HTTP_PROXY, HTTPS_PROXY or other proxy environment variables are configured in WSL
  • netsh winhttp show proxy shows direct access / no proxy
  • Winsock catalog only shows standard Microsoft providers
    WSL remote log
    Cursor successfully connects to the WSL Cursor server:

Successfully connected to Cursor server at http://127.0.0.1:46483/version from Windows

There is also this message:

Failed to patch code.sh launcher:
ENOENT: no such file or directory, open
‘c:\Program Files\cursor\resources\app\bin\code’

but the WSL server connection succeeds immediately afterwards.
Reproduction

  1. Open any WSL folder in Cursor, even an empty one.
  2. Open Agent/Chat.
  3. Send a simple prompt such as Hello.
  4. Request fails with getaddrinfo EBUSY …cursor.sh.
  5. Open a normal Windows filesystem project in the same Cursor installation.
  6. Agent/Chat works.

Could this be a bug in the Cursor WSL/remote Agent networking path? The hostname resolves correctly from both Windows and WSL, and HTTPS connectivity from WSL works, but Cursor’s own Node/Electron process returns getaddrinfo EBUSY only for WSL workspaces.

Hi there!

We detected that this may be a bug report, so we’ve moved your post to the Bug Reports category.

To help us investigate and fix this faster, could you edit your original post to include the details from the template below?

Bug Report Template - Click to expand

Where does the bug appear (feature/product)?

  • Editor, Tab & Chat (autocomplete, Composer, in-editor agent)
  • Terminal & commands
  • Models, pricing & API keys (availability, Auto/Max, BYOK/Bedrock)
  • MCP & tools
  • Cloud Agents & Automations (cursor.com/agents, scheduled/event)
  • BugBot & Code Review
  • Cursor CLI
  • Cursor Mobile
  • Remote (SSH / Dev Containers / WSL)
  • Account, billing & login
  • Something else…

Describe the Bug
A clear and concise description of what the bug is.


Steps to Reproduce
How can you reproduce this bug? We have a much better chance at fixing issues if we can reproduce them!

  1. …
  2. …
  3. …

Expected Behavior
What is meant to happen here that isn’t working correctly?


Screenshots / Screen Recordings
If applicable, attach images or videos (.jpg, .png, .gif, .mp4, .mov)


Operating System

  • Windows 10/11
  • MacOS
  • Linux

Version Information

  • For Cursor IDE: Menu → About Cursor → Copy
  • For Cursor CLI: Run agent about in your terminal
IDE:
Version: 2.xx.x
VSCode Version: 1.105.1
Commit: ......

CLI:
CLI Version 2026.01.17-d239e66

For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)


For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…


Additional Information
Add any other context about the problem here.


Does this stop you from using Cursor?

  • Yes - Cursor is unusable
  • Sometimes - I can sometimes use Cursor
  • No - Cursor works, but with this issue

The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!

Hey @Michael_Schlafer, thanks for the detailed report and for ruling out so much already.

In a WSL window, Cursor’s agent connects to our servers from inside WSL, and the DNS lookup in that process is what’s failing with EBUSY. Your Windows-side network is fine, so you can tell Cursor to send agent traffic through Windows instead:

  1. On Windows, press Ctrl+Shift+P and run “Preferences: Open User Settings (JSON)”.
  2. Add this line inside the top-level braces (add a comma after the previous line if needed):
    “cursorAgentHost.remoteInferenceRoute”: “always”
  3. Save the file.
  4. Reopen your WSL folder, then press Ctrl+Shift+P and run “Developer: Reload Window”.
  5. Open a new chat and send “Hello”.

Could you also run this inside your WSL terminal and paste the output? It uses the same Node that Cursor runs in WSL:

N=$(find ~/.cursor-server -maxdepth 4 -name node -type f | head -1); echo $N
$N -e "const d=require('dns');d.lookup('api2.cursor.sh',(e,a)=>console.log('plain',e?e.code:a));d.lookup('api2.cursor.sh',{hints:d.ADDRCONFIG},(e,a)=>console.log('addrconfig',e?e.code:a))"

Along with the output of wsl --version (in PowerShell) and the networking lines of your .wslconfig, if you have one (for example networkingMode, dnsTunneling).

Hello Colin,

this helped. Thanks a lot!

Here’s the output of the commands you suggested:

WSL --version
WSL-Version: 2.5.10.0
Kernelversion: 6.6.87.2-1
WSLg-Version: 1.0.66
MSRDC-Version: 1.2.6074
Direct3D-Version: 1.611.1-81528511
DXCore-Version: 10.0.26100.1-240331-1435.ge-release
Windows-Version: 10.0.26100.9457

I have no .wslconfig currently.
ChatGPT proposed me to create one temporarily with the following content:

[wsl2]
networkingMode=mirrored
dnsTunneling=true
autoProxy=false

But since it didn’t help we deleted it.

Best regards
Michael

Did you try this?

Yes, this sloved the problem, as I wrote. Thanks a lot.

I just posted the further command output because you asked me to. I thought you need it to analyze the issue more deeply.

Best regards
Michael

Oh yikes, sorry I missed that!

Thank you for providing the additional details. :folded_hands: Will share with the team!