WSL icon indicating copy to clipboard operation
WSL copied to clipboard

In the network mirror mode, the network proxy was adjusted multiple times under windows, resulting in the local and ssh connections of vscode being unavailable

Open Demonmasterlqx opened this issue 8 months ago • 4 comments

Windows Version

Microsoft Windows [version10.0.26100.3775]

WSL Version

2.4.13.0

Are you using WSL 1 or WSL 2?

  • [x] WSL 2
  • [ ] WSL 1

Kernel Version

Linux version 5.15.167.4-microsoft-standard-WSL2 (root@f9c826d3017f) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Tue Nov 5 00:21:55 UTC 2024

Distro Version

Ubuntu-22.04

Other Software

Using clash in windows for network proxy.

python fastapi and uvicorn for a sample service

Repro Steps

I think you may repro this by these steps:

  1. launch wsl and uisng network mirror mode.
  2. in windows, change the network proxy in multiple times.
  3. restart wsl
  4. try to link wsl by vscode(locally or ssh)

Expected Behavior

Link successfully.

Actual Behavior

vscode say: 2025-04-19 21:58:52.565 [info] No other tunnel running. and the connection was unsuccessful.

Diagnostic Logs

No response

Demonmasterlqx avatar Apr 19 '25 15:04 Demonmasterlqx

I change the network model into "Nat" and everything goes well

Demonmasterlqx avatar Apr 19 '25 15:04 Demonmasterlqx

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

github-actions[bot] avatar Apr 19 '25 15:04 github-actions[bot]

Diagnostic information
Found '/question', adding tag 'question'
Multiple log files found, using: https://github.com/user-attachments/files/19830687/WslLogs-2025-04-21_15-05-00.zip
.wslconfig found
Detected appx version: 2.4.13.0

github-actions[bot] avatar Apr 21 '25 07:04 github-actions[bot]