-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wsl: 检测到 localhost 代理配置,但未镜像到 WSL。NAT 模式下的 WSL 不支持 localhost 代理。 #10753
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
You can give me feedback by thumbs upping or thumbs downing this comment. |
English translation:
I can reproduce this issue.
This error message displays every time I type Btw, I'm not using WSL in NAT mode. Here's my [wsl2]
networkingMode = bridged
vmSwitch = Bridge
ipv6=true Edit: Workarounds: Set this config in [experimental]
autoProxy=false However this config will completely disable the auto proxy feature. |
same
|
same +1 |
一样的问题 |
|
Works to me, also fix my problem of Pycharm debugging from wsl, thanks! |
thanks~ |
Not works for me.
|
#10650 The problem still occurs in the 2.0.9 version.
|
By the way:
|
mirrored目前是只有预览版有是吧? |
If you have set up a proxy before, you also need to delete the code that set up the proxy before. I understand that mirrored has done the same network mapping for the host and virtual machine, and no additional settings are needed. I successfully solved the problem through this method. You can try it |
Thanks a lot! It works! |
@wzhuo2022 @mancuoj # experimental feature has moved to [wsl2] (https://github.com/microsoft/WSL/releases/tag/2.0.5), but networkingMode does not works for me:bug:. |
works for me but brought one new problem: my docker engine can't start in WSL2. i just delete the |
I started getting flooded with |
the same problem |
I tried this solution and at that time the warning message
disappears. However, I found my Pycharm was not able to debug using the conda environment created in wsl2. I manually change the .wslconfig to
and now the issue is resolved. No warning appears when I start the WSL system, nor does any error come up when I use PyCharm for debugging. |
I also encountered this problem when I opened WSL-Ubuntu today. This method successfully solved my OCD. At the same time, it also solves the confusion that the Windows system agent cannot run on WSL-Ubuntu. grateful! |
worked for me ~ |
So does the problem matter? It seems that the solution above just shields the error message. |
Hi everyone, in the beginning, this issue was created when I failed to taste the mirrored networkingmode. Now I solved this problem and the mirrored networkingmode is ok. The cause of failure is proxy configuration exist in both |
wsl2导致了这个问题,如果配置文件不能生效,可以使用会wsl1版本; |
Could you please offer me detailed solution since I'm a new hand. I would appreciate it. |
|
Successful. Thanks!
|
many thanks |
worked for me! |
For those who use docker desktop, just need one line like this.
|
|
Thanks a lot ! It works for me. |
It works !! |
Some of these parameters have been promoted in the latest versions of WSL, so now you can just do:
|
only this method can solve my issue,THX!!! |
THX! |
THANK YOU!!!! |
If using this
|
感谢!解决了 |
感谢。 由于一开始.wslconfig文件是txt文件类型,尝试了很久。后续把.txt去掉就可以了 |
折腾了好久,感谢! |
docker代理对这个有影响吗? |
糟糕,我不能找到我的代理配置,我貌似只在主机上开启了代理设置 |
当我尝试关闭了主机上的代理,报错消失了,但是我必须使用这些代理 |
配置完这个之后报错貌似消失了 |
Windows Version
Microsoft Windows [版本 10.0.22621.2506]
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
Thanks for your work about wsl.
Firstly, I have tried some updates about "networkingMode=mirrored", but failed. My system version is 22H2 which is not "Release Preview Channel".
So, I delete .wslconfig file.
Finally, when I start new terminal, I see "wsl: 检测到 localhost 代理配置,但未镜像到 WSL。NAT 模式下的 WSL 不支持 localhost 代理。" on the terminal.
The key point is "Release Preview Channel" is requisite for mirrored network in wsl2 ?
Expected Behavior
wsl2 can be visited by other machine in local area network.
Actual Behavior
wsl2 can not be visited by other machine in local area network.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: