Skip to content

Cannot connect to WSL2 from VSCode because of the wrong ip rule configure which generated by the kernel #13962

@FlowerCA77

Description

@FlowerCA77

Windows Version

Microsoft Windows [Version 10.0.26220.7523]

WSL Version

2.7.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.6.114.1-1

Distro Version

openSUSE Tumbleweed 20251211

Other Software

Visual Studio Code - Insiders 1.108.0-insider with Remote-WSL Extension 0.104.3

Repro Steps

Try to connect WSL in VSCode

Expected Behavior

Connect Successful

Actual Behavior

Connect Failed, here is the log:

[2025-12-22 10:02:15.623] WSL daemon log file: c:\Users\CA538\AppData\Roaming\Code - Insiders\logs\20251222T142824\window6\exthost\ms-vscode-remote.remote-wsl\wsl-daemon-20251222T100215.log
[2025-12-22 10:02:15.625] Probing if server is already installed: if [ -d ~/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf 'alpine-'; fi; uname -m;
[2025-12-22 10:02:15.626] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d openSUSE-Tumbleweed -e sh -c if [ -d ~/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf 'alpine-'; fi; uname -m;
[2025-12-22 10:02:15.195] Extension version: 0.104.3
[2025-12-22 10:02:15.195] L10N bundle: file:///c%3A/Users/CA538/.vscode-insiders/extensions/ms-vscode-remote.remote-wsl-0.104.3/l10n/bundle.l10n.zh-cn.json
[2025-12-22 10:02:15.215] authorityHierarchy: wsl+openSUSE-Tumbleweed
[2025-12-22 10:02:15.215] WSL extension activating for a local WSL instance
[2025-12-22 10:02:15.244] Download in background is enabled
[2025-12-22 10:02:15.245] Resolving wsl+openSUSE-Tumbleweed, resolveAttempt: 1
[2025-12-22 10:02:15.246] NodeExecServer run: C:\WINDOWS\System32\wsl.exe --status
[2025-12-22 10:02:15.350] WSL feature installed: true (wsl --status)
[2025-12-22 10:02:15.350] WSL command encoding: utf16le
[2025-12-22 10:02:15.350] NodeExecServer run: C:\WINDOWS\System32\wsl.exe --list --verbose
[2025-12-22 10:02:15.445] 3 distros found
[2025-12-22 10:02:15.447] Starting VS Code Server inside WSL (wsl2)
[2025-12-22 10:02:15.447] Windows build: 26220. Multi distro support: available. WSL path support: enabled
[2025-12-22 10:02:15.447] Scriptless setup: false
[2025-12-22 10:02:15.449] No shell environment set or found for current distro.
[2025-12-22 10:02:15.847] Probing result: install-found x86_64
[2025-12-22 10:02:15.847] Server install found in WSL
[2025-12-22 10:02:15.848] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d openSUSE-Tumbleweed sh -c 'env && VSCODE_WSL_DEBUG_INFO=true "$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 7f08f95ad54782bd242f5536470b330282197333 insider code-server-insiders .vscode-server-insiders --host=127.0.0.1 --port=0 --connection-token=3657187512-669389396-2435541354-2766760866 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --log=trace --telemetry-level=all'
[2025-12-22 10:02:15.862] Running with cwd: undefined, env: {
[2025-12-22 10:02:15.862]   "ACSetupSvcPort": "23210",
[2025-12-22 10:02:15.862]   "ACSvcPort": "17532",
[2025-12-22 10:02:15.862]   "ADVISOR_2025_DIR": "C:\\Program Files (x86)\\Intel\\oneAPI\\advisor\\2025.2",
[2025-12-22 10:02:15.862]   "ALLUSERSPROFILE": "C:\\ProgramData",
[2025-12-22 10:02:15.862]   "APPDATA": "C:\\Users\\CA538\\AppData\\Roaming",
[2025-12-22 10:02:15.862]   "asl.log": "Destination=file",
[2025-12-22 10:02:15.862]   "CABAL_DIR": "C:\\cabal",
[2025-12-22 10:02:15.862]   "ChocolateyInstall": "C:\\ProgramData\\chocolatey",
[2025-12-22 10:02:15.862]   "ChocolateyLastPathUpdate": "134010392755406047",
[2025-12-22 10:02:15.862]   "CHROME_CRASHPAD_PIPE_NAME": "\\\\.\\pipe\\crashpad_28344_QCHKYERAYEKXCEID",
[2025-12-22 10:02:15.862]   "CommonProgramFiles": "C:\\Program Files\\Common Files",
[2025-12-22 10:02:15.862]   "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
[2025-12-22 10:02:15.862]   "CommonProgramW6432": "C:\\Program Files\\Common Files",
[2025-12-22 10:02:15.862]   "COMPUTERNAME": "FLOWERCA77S_Z16",
[2025-12-22 10:02:15.862]   "ComSpec": "C:\\WINDOWS\\system32\\cmd.exe",
[2025-12-22 10:02:15.862]   "CUDA_PATH": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v13.0",
[2025-12-22 10:02:15.862]   "CUDA_PATH_V12_8": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.8",
[2025-12-22 10:02:15.862]   "CUDA_PATH_V13_0": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v13.0",
[2025-12-22 10:02:15.862]   "CURL_CA_BUNDLE": "C:\\Program Files\\PostgreSQL\\18\\ssl\\certs\\ca-bundle.crt",
[2025-12-22 10:02:15.862]   "DevEco Studio": "C:\\Program Files\\Huawei\\DevEco Studio\\bin;",
[2025-12-22 10:02:15.862]   "DH_RemoteToolsInstallDir": "C:\\Program Files\\Microsoft Visual Studio 18.0\\",
[2025-12-22 10:02:15.862]   "DriverData": "C:\\Windows\\System32\\Drivers\\DriverData",
[2025-12-22 10:02:15.862]   "EFC_19352_1262719628": "1",
[2025-12-22 10:02:15.862]   "EFC_19352_1592913036": "1",
[2025-12-22 10:02:15.862]   "EFC_19352_2283032206": "1",
[2025-12-22 10:02:15.862]   "EFC_19352_2397410445": "1",
[2025-12-22 10:02:15.862]   "EFC_19352_2775293581": "1",
[2025-12-22 10:02:15.862]   "EFC_19352_3789132940": "1",
[2025-12-22 10:02:15.862]   "EnableLog": "INFO",
[2025-12-22 10:02:15.862]   "FLUTTER_STORAGE_BASE_URL": "https://storage.flutter-io.cn",
[2025-12-22 10:02:15.862]   "GDAL_DATA": "C:\\Program Files\\PostgreSQL\\18\\gdal-data",
[2025-12-22 10:02:15.862]   "GHCUP_INSTALL_BASE_PREFIX": "C:\\",
[2025-12-22 10:02:15.862]   "GHCUP_MSYS2_ENV": "MINGW64",
[2025-12-22 10:02:15.862]   "GIT_LFS_PATH": "C:\\Program Files\\Git LFS",
[2025-12-22 10:02:15.862]   "HDC_SERVER_PORT": "65037",
[2025-12-22 10:02:15.862]   "HOMEDRIVE": "C:",
[2025-12-22 10:02:15.862]   "HOMEPATH": "\\Users\\CA538",
[2025-12-22 10:02:15.862]   "LOCALAPPDATA": "C:\\Users\\CA538\\AppData\\Local",
[2025-12-22 10:02:15.862]   "LOGONSERVER": "\\\\FLOWERCA77S_Z16",
[2025-12-22 10:02:15.862]   "NUMBER_OF_PROCESSORS": "22",
[2025-12-22 10:02:15.862]   "OneDrive": "C:\\Users\\CA538\\OneDrive",
[2025-12-22 10:02:15.862]   "OPENSSL_CONF": "C:\\Program Files\\PostgreSQL\\psqlODBC\\etc\\openssl.cnf",
[2025-12-22 10:02:15.862]   "OPENSSL_ia32cap": "~0x20000000",
[2025-12-22 10:02:15.862]   "OS": "Windows_NT",
[2025-12-22 10:02:15.862]   "Path": "C:\\texlive\\2025\\bin\\windows;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\java8path;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\WINDOWS\\System32\\OpenSSH;C:\\Program Files\\dotnet;C:\\Program Files\\Git LFS;C:\\Program Files\\nodejs;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.8\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.8\\libnvvp;C:\\Program Files\\NVIDIA Corporation\\NVIDIA app\\NvDLISR;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2025.3.1;C:\\Program Files\\MATLAB\\R2025a\\bin;C:\\Program Files\\MATLAB\\R2025a\\runtime\\win64;C:\\Program Files\\Pandoc;C:\\Program Files\\Neovim\\bin;C:\\Program Files\\Neovide;C:\\Program Files\\Zero Install;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit;C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x86;C:\\Program Files\\Microsoft SQL Server\\170\\Tools\\Binn;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn;C:\\ProgramData\\chocolatey\\bin;C:\\ProgramData\\miniconda3\\Scripts;C:\\texlive\\2024\\bin\\windows;C:\\ghcup\\bin;C:\\Ruby34-x64\\bin;C:\\msys64\\ucrt64\\bin;C:\\Coq-Platform~8.20~2025.01\\bin;C:\\Program Files\\PowerShell\\7-preview;C:\\Program Files\\Python314\\Scripts;C:\\Program Files\\Python314;C:\\Users\\CA538.elan\\bin;C:\\Users\\CA538.cargo\\bin;C:\\Users\\CA538\\AppData\\Local\\Programs\\oh-my-posh\\bin;C:\\Users\\CA538\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\CA538\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\CA538.dotnet\\tools;C:\\Users\\CA538\\AppData\\Local\\JetBrains\\Toolbox\\scripts;C:\\platform-tools;C:\\Users\\CA538\\AppData\\Local\\Programs\\Ollama;D:\\Program Files\\ffmpeg\\bin;C:\\Users\\CA538\\AppData\\Local\\Microsoft\\WinGet\\Packages\\astral-sh.ruff_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\\Users\\CA538.lmstudio\\bin;C:\\Users\\CA538\\AppData\\Roaming\\npm;C:\\Users\\CA538\\AppData\\Roaming\\Code\\User\\globalStorage\\github.copilot-chat\\debugCommand;D:\\Flutter\\SDK\\flutter\\bin;C:\\Users\\CA538\\AppData\\Local\\Coursier\\data\\bin;C:\\Program Files\\Microsoft SQL Server\\170\\Tools\\Binn\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\170\\DTS\\Binn\\;C:\\Program Files\\Git\\cmd;C:\\WINDOWS\\system32\\config\\systemprofile\\AppData\\Local\\Muse Hub\\lib;C:\\Program Files\\Microsoft VS Code Insiders\\bin;C:\\Users\\CA538\\AppData\\Local\\Programs\\oh-my-posh\\bin\\;C:\\Program Files\\PowerShell\\7-preview;C:\\Program Files\\Python314\\Scripts;C:\\Program Files\\Python314;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Users\\CA538.elan\\bin;C:\\Ruby34-x64\\bin;C:\\Users\\CA538.cargo\\bin;C:\\Users\\CA538\\AppData\\Local\\Programs\\oh-my-posh\\bin;C:\\Users\\CA538\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\CA538\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\CA538.dotnet\\tools;C:\\texlive\\2024\\bin\\windows;C:\\Users\\CA538\\AppData\\Local\\JetBrains\\Toolbox\\scripts;C:\\ProgramData\\miniconda3\\Scripts;C:\\platform-tools;C:\\Users\\CA538\\AppData\\Local\\Programs\\Ollama;C:\\ghcup\\bin;D:\\Program Files\\ffmpeg\\bin;C:\\Users\\CA538\\AppData\\Local\\Microsoft\\WinGet\\Packages\\astral-sh.ruff_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\\Users\\CA538.lmstudio\\bin;C:\\Users\\CA538\\AppData\\Roaming\\npm;C:\\Users\\CA538\\AppData\\Roaming\\Code\\User\\globalStorage\\github.copilot-chat\\debugCommand;D:\\Flutter\\SDK\\flutter\\bin;C:\\Users\\CA538\\AppData\\Local\\Coursier\\data\\bin;C:\\Users\\CA538\\AppData\\Local\\PowerToys\\;C:\\Users\\CA538\\AppData\\Local\\Microsoft\\WinGet\\Links;C:\\Users\\CA538\\.dotnet\\tools;C:\\Zed\\bin",
[2025-12-22 10:02:15.862]   "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW;.RB;.RBW",
[2025-12-22 10:02:15.862]   "POSH_INSTALLER": "manual",
[2025-12-22 10:02:15.862]   "POSH_THEMES_PATH": "C:\\Users\\CA538\\AppData\\Local\\Programs\\oh-my-posh\\themes\\",
[2025-12-22 10:02:15.862]   "POSTGIS_ENABLE_OUTDB_RASTERS": "1",
[2025-12-22 10:02:15.862]   "POSTGIS_GDAL_ENABLED_DRIVERS": "ENABLE_ALL",
[2025-12-22 10:02:15.862]   "POWERSHELL_DISTRIBUTION_CHANNEL": "MSI:Windows 10 Pro",
[2025-12-22 10:02:15.862]   "PROCESSOR_ARCHITECTURE": "AMD64",
[2025-12-22 10:02:15.862]   "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 170 Stepping 4, GenuineIntel",
[2025-12-22 10:02:15.862]   "PROCESSOR_LEVEL": "6",
[2025-12-22 10:02:15.862]   "PROCESSOR_REVISION": "aa04",
[2025-12-22 10:02:15.862]   "ProgramData": "C:\\ProgramData",
[2025-12-22 10:02:15.862]   "ProgramFiles": "C:\\Program Files",
[2025-12-22 10:02:15.862]   "ProgramFiles(x86)": "C:\\Program Files (x86)",
[2025-12-22 10:02:15.862]   "ProgramW6432": "C:\\Program Files",
[2025-12-22 10:02:15.862]   "PROJ_LIB": "C:\\Program Files\\PostgreSQL\\18\\share\\contrib\\postgis-3.6\\proj",
[2025-12-22 10:02:15.862]   "PSModulePath": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",
[2025-12-22 10:02:15.862]   "PUBLIC": "C:\\Users\\Public",
[2025-12-22 10:02:15.862]   "PUB_HOSTED_URL": "https://pub.flutter-io.cn",
[2025-12-22 10:02:15.862]   "RlsSvcPort": "22112",
[2025-12-22 10:02:15.862]   "SESSIONNAME": "Console",
[2025-12-22 10:02:15.862]   "sourcesdk": "C:\\Program Files (x86)\\Steam\\steamapps\\common\\SourceSDK",
[2025-12-22 10:02:15.862]   "SystemDrive": "C:",
[2025-12-22 10:02:15.862]   "SystemRoot": "C:\\WINDOWS",
[2025-12-22 10:02:15.862]   "TEMP": "C:\\Users\\CA538\\AppData\\Local\\Temp",
[2025-12-22 10:02:15.862]   "TMP": "C:\\Users\\CA538\\AppData\\Local\\Temp",
[2025-12-22 10:02:15.862]   "USERDOMAIN": "FLOWERCA77S_Z16",
[2025-12-22 10:02:15.862]   "USERDOMAIN_ROAMINGPROFILE": "FLOWERCA77S_Z16",
[2025-12-22 10:02:15.862]   "USERNAME": "CA538",
[2025-12-22 10:02:15.862]   "USERPROFILE": "C:\\Users\\CA538",
[2025-12-22 10:02:15.862]   "VProject": "C:\\Program Files (x86)\\Steam\\steamapps\\common\\team fortress 2\\tf",
[2025-12-22 10:02:15.862]   "VTUNE_PROFILER_2025_DIR": "C:\\Program Files (x86)\\Intel\\oneAPI\\vtune\\2025.4",
[2025-12-22 10:02:15.862]   "windir": "C:\\WINDOWS",
[2025-12-22 10:02:15.862]   "ZES_ENABLE_SYSMAN": "1",
[2025-12-22 10:02:15.862]   "VSCODE_WSL_EXT_LOCATION": "c:\\Users\\CA538\\.vscode-insiders\\extensions\\ms-vscode-remote.remote-wsl-0.104.3",
[2025-12-22 10:02:15.862]   "WSLENV": "VSCODE_WSL_EXT_LOCATION/up"
[2025-12-22 10:02:15.862] }
[2025-12-22 10:02:16.168] SHELL=/usr/bin/zsh
[2025-12-22 10:02:16.169] WSL2_GUI_APPS_ENABLED=1
[2025-12-22 10:02:16.169] WSL_DISTRO_NAME=openSUSE-Tumbleweed
[2025-12-22 10:02:16.169] NAME=FlowerCA77sZ16
[2025-12-22 10:02:16.169] PWD=/mnt/c/Program Files/Microsoft VS Code Insiders
[2025-12-22 10:02:16.169] LOGNAME=flower
[2025-12-22 10:02:16.169] _=/usr/bin/env
[2025-12-22 10:02:16.169] HOME=/home/flower
[2025-12-22 10:02:16.169] LANG=en_US.UTF-8
[2025-12-22 10:02:16.169] WSL_INTEROP=/run/WSL/1355_interop
[2025-12-22 10:02:16.169] WAYLAND_DISPLAY=wayland-0
[2025-12-22 10:02:16.169] TERM=xterm-256color
[2025-12-22 10:02:16.169] USER=flower
[2025-12-22 10:02:16.169] DISPLAY=:0
[2025-12-22 10:02:16.169] SHLVL=1
[2025-12-22 10:02:16.169] XDG_RUNTIME_DIR=/run/user/1000/
[2025-12-22 10:02:16.169] WSLENV=VSCODE_WSL_EXT_LOCATION/up
[2025-12-22 10:02:16.169] VSCODE_WSL_EXT_LOCATION=/mnt/c/Users/CA538/.vscode-insiders/extensions/ms-vscode-remote.remote-wsl-0.104.3
[2025-12-22 10:02:16.169] PATH=/home/flower/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/texlive/2025/bin/windows:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/java8path:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0:/mnt/c/WINDOWS/System32/OpenSSH:/mnt/c/Program Files/dotnet:/mnt/c/Program Files/Git LFS:/mnt/c/Program Files/nodejs:/mnt/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8/bin:/mnt/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8/libnvvp:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA app/NvDLISR:/mnt/c/Program Files/NVIDIA Corporation/Nsight Compute 2025.3.1:/mnt/c/Program Files/MATLAB/R2025a/bin:/mnt/c/Program Files/MATLAB/R2025a/runtime/win64:/mnt/c/Program Files/Pandoc:/mnt/c/Program Files/Neovim/bin:/mnt/c/Program Files/Neovide:/mnt/c/Program Files/Zero Install:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit:/mnt/c/Program Files (x86)/Windows Kits/10/Debuggers/x86:/mnt/c/Program Files/Microsoft SQL Server/170/Tools/Binn:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/ProgramData/miniconda3/Scripts:/mnt/c/texlive/2024/bin/windows:/mnt/c/ghcup/bin:/mnt/c/Ruby34-x64/bin:/mnt/c/msys64/ucrt64/bin:/mnt/c/Coq-Platform~8.20~2025.01/bin:/mnt/c/Program Files/PowerShell/7-preview:/mnt/c/Program Files/Python314/Scripts:/mnt/c/Program Files/Python314:/mnt/c/Users/CA538.elan/bin:/mnt/c/Users/CA538.cargo/bin:/mnt/c/Users/CA538/AppData/Local/Programs/oh-my-posh/bin:/mnt/c/Users/CA538/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/CA538/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/CA538.dotnet/tools:/mnt/c/Users/CA538/AppData/Local/JetBrains/Toolbox/scripts:/mnt/c/platform-tools:/mnt/c/Users/CA538/AppData/Local/Programs/Ollama:/mnt/d/Program Files/ffmpeg/bin:/mnt/c/Users/CA538/AppData/Local/Microsoft/WinGet/Packages/astral-sh.ruff_Microsoft.Winget.Source_8wekyb3d8bbwe:/mnt/c/Users/CA538.lmstudio/bin:/mnt/c/Users/CA538/AppData/Roaming/npm:/mnt/c/Users/CA538/AppData/Roaming/Code/User/globalStorage/github.copilot-chat/debugCommand:/mnt/d/Flutter/SDK/flutter/bin:/mnt/c/Users/CA538/AppData/Local/Coursier/data/bin:/mnt/c/Program Files/Microsoft SQL Server/170/Tools/Binn/:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Microsoft SQL Server/170/DTS/Binn/:/mnt/c/Program Files/Git/cmd:/mnt/c/WINDOWS/system32/config/systemprofile/AppData/Local/Muse Hub/lib:/mnt/c/Program Files/Microsoft VS Code Insiders/bin:/mnt/c/Users/CA538/AppData/Local/Programs/oh-my-posh/bin/:/mnt/c/Program Files/PowerShell/7-preview:/mnt/c/Program Files/Python314/Scripts:/mnt/c/Program Files/Python314:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Users/CA538.elan/bin:/mnt/c/Ruby34-x64/bin:/mnt/c/Users/CA538.cargo/bin:/mnt/c/Users/CA538/AppData/Local/Programs/oh-my-posh/bin:/mnt/c/Users/CA538/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/CA538/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/CA538.dotnet/tools:/mnt/c/texlive/2024/bin/windows:/mnt/c/Users/CA538/AppData/Local/JetBrains/Toolbox/scripts:/mnt/c/ProgramData/miniconda3/Scripts:/mnt/c/platform-tools:/mnt/c/Users/CA538/AppData/Local/Programs/Ollama:/mnt/c/ghcup/bin:/mnt/d/Program Files/ffmpeg/bin:/mnt/c/Users/CA538/AppData/Local/Microsoft/WinGet/Packages/astral-sh.ruff_Microsoft.Winget.Source_8wekyb3d8bbwe:/mnt/c/Users/CA538.lmstudio/bin:/mnt/c/Users/CA538/AppData/Roaming/npm:/mnt/c/Users/CA538/AppData/Roaming/Code/User/globalStorage/github.copilot-chat/debugCommand:/mnt/d/Flutter/SDK/flutter/bin:/mnt/c/Users/CA538/AppData/Local/Coursier/data/bin:/mnt/c/Users/CA538/AppData/Local/PowerToys/:/mnt/c/Users/CA538/AppData/Local/Microsoft/WinGet/Links:/mnt/c/Users/CA538/.dotnet/tools:/mnt/c/Zed/bin
[2025-12-22 10:02:16.169] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
[2025-12-22 10:02:16.169] HOSTTYPE=x86_64
[2025-12-22 10:02:16.169] PULSE_SERVER=unix:/mnt/wslg/PulseServer
[2025-12-22 10:02:16.169] OLDPWD=/mnt/c/Program Files/Microsoft VS Code Insiders
[2025-12-22 10:02:16.169] Setting up server environment: Looking for /home/flower/.vscode-server-insiders/server-env-setup. Not found.
[2025-12-22 10:02:16.169] WSL version: 6.6.114.1-microsoft-standard-WSL2 openSUSE-Tumbleweed
[2025-12-22 10:02:16.169] Network mode: mirrored
[2025-12-22 10:02:16.169] WSL-shell-PID: 1356
[2025-12-22 10:02:16.169] Node executable: /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/node
[2025-12-22 10:02:16.169] Starting server: /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/bin/code-server-insiders --host=127.0.0.1 --port=0 --connection-token=3657187512-669389396-2435541354-2766760866 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --log=trace --telemetry-level=all
[2025-12-22 10:02:16.171] + CODE_PROFILE=/home/flower/.vscode-server-insiders/server-env-setup
[2025-12-22 10:02:16.171] + printf 'Setting up server environment: Looking for %s. ' /home/flower/.vscode-server-insiders/server-env-setup
[2025-12-22 10:02:16.171] + '[' -f /home/flower/.vscode-server-insiders/server-env-setup ']'
[2025-12-22 10:02:16.171] + echo 'Not found.'
[2025-12-22 10:02:16.171] + VSCODE_REMOTE_BIN=/home/flower/.vscode-server-insiders/bin
[2025-12-22 10:02:16.171] ++ uname -r
[2025-12-22 10:02:16.171] + WSL_VERSION=6.6.114.1-microsoft-standard-WSL2
[2025-12-22 10:02:16.171] + echo 'WSL version: 6.6.114.1-microsoft-standard-WSL2 openSUSE-Tumbleweed'
[2025-12-22 10:02:16.171] + '[' -x /usr/bin/wslinfo ']'
[2025-12-22 10:02:16.171] + printf 'Network mode: '
[2025-12-22 10:02:16.171] + /usr/bin/wslinfo --networking-mode
[2025-12-22 10:02:16.171] ++ dirname /mnt/c/Users/CA538/.vscode-insiders/extensions/ms-vscode-remote.remote-wsl-0.104.3/scripts/wslServer.sh
[2025-12-22 10:02:16.171] + /mnt/c/Users/CA538/.vscode-insiders/extensions/ms-vscode-remote.remote-wsl-0.104.3/scripts/wslDownload.sh 7f08f95ad54782bd242f5536470b330282197333 insider /home/flower/.vscode-server-insiders/bin
[2025-12-22 10:02:16.171] + '[' '!' -d /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333 ']'
[2025-12-22 10:02:16.172] + RC=0
[2025-12-22 10:02:16.172] + '[' 0 -ne 0 ']'
[2025-12-22 10:02:16.172] + echo 'WSL-shell-PID: 1356'
[2025-12-22 10:02:16.172] + echo 'Node executable: /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/node'
[2025-12-22 10:02:16.172] + echo 'Starting server: /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/bin/code-server-insiders --host=127.0.0.1 --port=0 --connection-token=3657187512-669389396-2435541354-2766760866 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --log=trace --telemetry-level=all'
[2025-12-22 10:02:16.172] + '[' -f /etc/alpine-release ']'
[2025-12-22 10:02:16.172] ++ uname -m
[2025-12-22 10:02:16.172] + '[' x86_64 = aarch64 ']'
[2025-12-22 10:02:16.172] + /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/bin/code-server-insiders --host=127.0.0.1 --port=0 --connection-token=3657187512-669389396-2435541354-2766760866 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --log=trace --telemetry-level=all
[2025-12-22 10:02:16.474] *
[2025-12-22 10:02:16.474] * Visual Studio Code Server
[2025-12-22 10:02:16.474] *
[2025-12-22 10:02:16.474] * By using the software, you agree to
[2025-12-22 10:02:16.474] * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
[2025-12-22 10:02:16.474] * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
[2025-12-22 10:02:16.474] *
[2025-12-22 10:02:16.474] Server bound to 127.0.0.1:45715 (IPv4)
[2025-12-22 10:02:16.474] Extension host agent listening on 45715
[2025-12-22 10:02:16.474] 
[2025-12-22 10:02:16.474] [18:02:16] Remote configuration data at /home/flower/.vscode-server-insiders
[2025-12-22 10:02:16.474] [18:02:16] process arguments: {
[2025-12-22 10:02:16.474]   _: [],
[2025-12-22 10:02:16.474]   host: '127.0.0.1',
[2025-12-22 10:02:16.474]   port: '0',
[2025-12-22 10:02:16.474]   'connection-token': '3657187512-669389396-2435541354-2766760866',
[2025-12-22 10:02:16.474]   'without-connection-token': false,
[2025-12-22 10:02:16.474]   'disable-websocket-compression': true,
[2025-12-22 10:02:16.474]   'print-startup-performance': false,
[2025-12-22 10:02:16.474]   'print-ip-address': false,
[2025-12-22 10:02:16.474]   'accept-server-license-terms': true,
[2025-12-22 10:02:16.474]   'telemetry-level': 'all',
[2025-12-22 10:02:16.474]   'enable-smoke-test-driver': false,
[2025-12-22 10:02:16.474]   'disable-telemetry': false,
[2025-12-22 10:02:16.474]   'disable-experiments': false,
[2025-12-22 10:02:16.474]   'disable-workspace-trust': false,
[2025-12-22 10:02:16.474]   log: [ 'trace' ],
[2025-12-22 10:02:16.474]   'force-disable-user-env': false,
[2025-12-22 10:02:16.474]   'enable-sync': false,
[2025-12-22 10:02:16.474]   'use-test-resolver': false,
[2025-12-22 10:02:16.474]   'update-extensions': false,
[2025-12-22 10:02:16.474]   'list-extensions': false,
[2025-12-22 10:02:16.474]   'show-versions': false,
[2025-12-22 10:02:16.474]   force: false,
[2025-12-22 10:02:16.474]   'do-not-sync': false,
[2025-12-22 10:02:16.474]   'do-not-include-pack-dependencies': false,
[2025-12-22 10:02:16.474]   'pre-release': false,
[2025-12-22 10:02:16.474]   'start-server': false,
[2025-12-22 10:02:16.474]   'enable-remote-auto-shutdown': false,
[2025-12-22 10:02:16.474]   'remote-auto-shutdown-without-delay': false,
[2025-12-22 10:02:16.474]   'use-host-proxy': true,
[2025-12-22 10:02:16.474]   'without-browser-env-var': true,
[2025-12-22 10:02:16.474]   help: false,
[2025-12-22 10:02:16.474]   version: false,
[2025-12-22 10:02:16.474]   'user-data-dir': '/home/flower/.vscode-server-insiders/data',
[2025-12-22 10:02:16.474]   'builtin-extensions-dir': '/home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/extensions',
[2025-12-22 10:02:16.474]   'extensions-dir': '/home/flower/.vscode-server-insiders/extensions',
[2025-12-22 10:02:16.474]   logsPath: '/home/flower/.vscode-server-insiders/data/logs/20251222T180216'
[2025-12-22 10:02:16.474] }
[2025-12-22 10:02:16.474] [18:02:16] 
[2025-12-22 10:02:16.474] 
[2025-12-22 10:02:16.474] 
[2025-12-22 10:02:16.474] 
[2025-12-22 10:02:16.474] 
[2025-12-22 10:02:16.490] Started local proxy server on 2498.
[2025-12-22 10:02:16.490] WSL resolver response: 127.0.0.1:2498
[2025-12-22 10:02:16.490] 若要调试连接问题,请在 http://127.0.0.1:2498/version 上打开本地浏览器
[2025-12-22 10:02:16.490] No extension host environment set
[2025-12-22 10:02:16.510] Using executable (0) to forward requests from local 2498 to remote 45715
[2025-12-22 10:02:16.511] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d openSUSE-Tumbleweed -e /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45715 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2025-12-22 10:02:16.650] Exec (0) stderr: Error: connect EHOSTUNREACH 127.0.0.1:45715
[2025-12-22 10:02:16.650]     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1637:16)
[2025-12-22 10:02:16.650] Exec (0) stderr: Remote close with error
[2025-12-22 10:02:16.705] Exec (0): Local close
[2025-12-22 10:02:16.706] Exec (0) has terminated (local socket closed) with status 1 and message undefined.
[2025-12-22 10:02:16.708] Resolving wsl+openSUSE-Tumbleweed, resolveAttempt: 2
[2025-12-22 10:02:16.708] Returning resolved promise.
[2025-12-22 10:02:16.721] Using executable (1) to forward requests from local 2498 to remote 45715
[2025-12-22 10:02:16.721] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d openSUSE-Tumbleweed -e /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45715 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2025-12-22 10:02:16.857] Exec (1) stderr: Error: connect EHOSTUNREACH 127.0.0.1:45715
[2025-12-22 10:02:16.857]     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1637:16)
[2025-12-22 10:02:16.858] Exec (1) stderr: Remote close with error
[2025-12-22 10:02:16.938] Exec (1): Local close
[2025-12-22 10:02:16.938] Exec (1) has terminated (local socket closed) with status 1 and message undefined.
[2025-12-22 10:02:16.954] Using executable (2) to forward requests from local 2498 to remote 45715
[2025-12-22 10:02:16.954] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d openSUSE-Tumbleweed -e /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45715 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2025-12-22 10:02:17.085] Exec (2) stderr: Error: connect EHOSTUNREACH 127.0.0.1:45715
[2025-12-22 10:02:17.085]     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1637:16)
[2025-12-22 10:02:17.085] Exec (2) stderr: Remote close with error
[2025-12-22 10:02:17.145] Exec (2): Local close
[2025-12-22 10:02:17.146] Exec (2) has terminated (local socket closed) with status 1 and message undefined.
[2025-12-22 10:02:17.148] Resolving wsl+openSUSE-Tumbleweed, resolveAttempt: 3
[2025-12-22 10:02:17.148] Returning resolved promise.
[2025-12-22 10:02:17.159] Using executable (3) to forward requests from local 2498 to remote 45715
[2025-12-22 10:02:17.159] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d openSUSE-Tumbleweed -e /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45715 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2025-12-22 10:02:17.317] Exec (3) stderr: Error: connect EHOSTUNREACH 127.0.0.1:45715
[2025-12-22 10:02:17.317]     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1637:16)
[2025-12-22 10:02:17.318] Exec (3) stderr: Remote close with error
[2025-12-22 10:02:17.386] Exec (3) has terminated  with status 1 and message undefined.
[2025-12-22 10:02:17.386] Exec (3): Local close
[2025-12-22 10:02:17.402] Using executable (4) to forward requests from local 2498 to remote 45715
[2025-12-22 10:02:17.402] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d openSUSE-Tumbleweed -e /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45715 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2025-12-22 10:02:17.547] Exec (4) stderr: Error: connect EHOSTUNREACH 127.0.0.1:45715
[2025-12-22 10:02:17.547]     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1637:16)
[2025-12-22 10:02:17.548] Exec (4) stderr: Remote close with error
[2025-12-22 10:02:17.625] Exec (4) has terminated  with status 1 and message undefined.
[2025-12-22 10:02:17.626] Exec (4): Local close
[2025-12-22 10:02:17.637] Using executable (5) to forward requests from local 2498 to remote 45715
[2025-12-22 10:02:17.637] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d openSUSE-Tumbleweed -e /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45715 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2025-12-22 10:02:17.669] Resolving wsl+openSUSE-Tumbleweed, resolveAttempt: 4
[2025-12-22 10:02:17.669] Returning resolved promise.
[2025-12-22 10:02:17.769] Exec (5) stderr: Error: connect EHOSTUNREACH 127.0.0.1:45715
[2025-12-22 10:02:17.769]     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1637:16)
[2025-12-22 10:02:17.770] Exec (5) stderr: Remote close with error
[2025-12-22 10:02:17.828] Exec (5): Local close
[2025-12-22 10:02:17.829] Exec (5) has terminated (local socket closed) with status 1 and message undefined.
[2025-12-22 10:02:17.842] Using executable (6) to forward requests from local 2498 to remote 45715
[2025-12-22 10:02:17.842] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d openSUSE-Tumbleweed -e /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45715 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2025-12-22 10:02:17.997] Exec (6) stderr: Error: connect EHOSTUNREACH 127.0.0.1:45715
[2025-12-22 10:02:17.997]     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1637:16)
[2025-12-22 10:02:17.997] Exec (6) stderr: Remote close with error
[2025-12-22 10:02:18.063] Exec (6): Local close
[2025-12-22 10:02:18.063] Exec (6) has terminated (local socket closed) with status 1 and message undefined.
[2025-12-22 10:02:18.065] Resolving wsl+openSUSE-Tumbleweed, resolveAttempt: 5
[2025-12-22 10:02:18.065] Returning resolved promise.
[2025-12-22 10:02:18.080] Using executable (7) to forward requests from local 2498 to remote 45715
[2025-12-22 10:02:18.080] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d openSUSE-Tumbleweed -e /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45715 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2025-12-22 10:02:18.251] Exec (7) stderr: Error: connect EHOSTUNREACH 127.0.0.1:45715
[2025-12-22 10:02:18.251]     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1637:16)
[2025-12-22 10:02:18.252] Exec (7) stderr: Remote close with error
[2025-12-22 10:02:18.320] Exec (7): Local close
[2025-12-22 10:02:18.320] Exec (7) has terminated (local socket closed) with status 1 and message undefined.
[2025-12-22 10:02:18.332] Using executable (8) to forward requests from local 2498 to remote 45715
[2025-12-22 10:02:18.332] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d openSUSE-Tumbleweed -e /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45715 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2025-12-22 10:02:18.490] Exec (8) stderr: Error: connect EHOSTUNREACH 127.0.0.1:45715
[2025-12-22 10:02:18.490]     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1637:16)
[2025-12-22 10:02:18.490] Exec (8) stderr: Remote close with error
[2025-12-22 10:02:18.560] Exec (8): Local close
[2025-12-22 10:02:18.560] Exec (8) has terminated (local socket closed) with status 1 and message undefined.
[2025-12-22 10:02:18.573] Using executable (9) to forward requests from local 2498 to remote 45715
[2025-12-22 10:02:18.573] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d openSUSE-Tumbleweed -e /home/flower/.vscode-server-insiders/bin/7f08f95ad54782bd242f5536470b330282197333/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45715 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2025-12-22 10:02:18.721] Exec (9) stderr: Error: connect EHOSTUNREACH 127.0.0.1:45715
[2025-12-22 10:02:18.721]     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1637:16)
[2025-12-22 10:02:18.721] Exec (9) stderr: Remote close with error
[2025-12-22 10:02:18.815] Exec (9): Local close
[2025-12-22 10:02:19.007] Exec (9) has terminated (local socket closed) with status 1 and message undefined.

Diagnostic Logs

I'm almost certain this error stems from a kernel bug. Below is my diagnostic process for reference:

  1. Through extensive trial and error, I discovered the following rules in the ip rule command:
1:      from all ipproto tcp lookup 127
1:      from all ipproto udp lookup 127

This is abnormal. My tests confirmed that removing these entries suppresses the error, allowing VSCode to successfully connect to the WSL host.

  1. Using the command ip route show table 127 to inspect the 127 table, I found:
127.0.0.1 via 169.254.73.152 dev loopback0 proto kernel src 127.0.0.1 onlink

This is the root cause of the error. Packets sent by the Windows VSCode client are intercepted by this rule and redirected to loopback0, preventing them from being forwarded to the local table according to standard routing rules:

local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1
  1. The behavior in the local table is correct, while the behavior in the 127 table is incorrect. I want to point out that loopback0 is not the same as lo. After packets are intercepted by the table 127 rule, they are sent to loopback0, which does not forward packets to lo. By examining the journal logs, I found the following entries:
kernel: hv_netvsc fc232fd7-4443-4791-a539-deef713ec4d4 loopback0: renamed from eth4

This means: loopback0 is eth4. Furthermore, my testing confirmed that sudo ip link set eth4 up does not resolve the issue, meaning eth4 absolutely does not forward packets to lo. Since this entry appears in the kernel, I am almost certain this is a kernel bug.

PS: This issue is not a bug in VSCode, as I attempted to connect to a project within WSL using JetBrains. While their IDE successfully opened the project, all tools requiring connection to 127.0.0.1 (such as PyCharm's Python console) failed to function properly, reporting connection errors.

Metadata

Metadata

Assignees

No one assigned

    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