Skip to content

Cannot connect to WSL (VirtioProxy Networking mode) in the latest version #251782

Closed
@changlei-li

Description

@changlei-li

Type: Bug

  1. set wsl networking mode to VirtioProxy, restart wsl.
  2. open project in the wsl, shows Failed to connect to the remote extension host server (Error: WebSocket close with status code 1006)

What is done:
Set wsl networking mode to mirror or nat, OK
rm -r .vscode-server dir on wsl, NOK

VS Code version: Code 1.101.0 (dfaf441, 2025-06-11T15:00:50.123Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Connection to 'WSL: Fedora' could not be established WebSocket close with status code 1006

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz (16 x 2496)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.71GB (17.12GB free)
Process Argv --crash-reporter-id f85dfa43-29aa-44db-baa8-db1492f223f2
Screen Reader no
VM 0%

Connection to 'WSL: Fedora' could not be established WebSocket close with status code 1006

Extensions: none
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
pythonrstrctxt:31112756
nativeloc2:31192216
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
c7cif404:31314491
5b33h341:31326279
pythonpulldiagcf:31325931
996jf627:31283433
pythonrdcb7:31303018
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
747dc170:31275177
6518g693:31325878
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
jhi8h917:31327034
useunpkg:31328953
1292j425:31329156
4f60g487:31327383

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions