Skip to content
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

wsl2.hostAddressLoopback refers only experimental.networkinMode, not wsl2.networkingMode #11102

Open
1 of 2 tasks
euxn23 opened this issue Jan 31, 2024 · 3 comments
Open
1 of 2 tasks

Comments

@euxn23
Copy link

euxn23 commented Jan 31, 2024

Windows Version

Microsoft Windows [Version 10.0.22635.3130]

WSL Version

2.1.1.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.146.1-2

Distro Version

Arch Linux

Other Software

No response

Repro Steps

  1. According to the Document(https://learn.microsoft.com/en-us/windows/wsl/wsl-config#main-wsl-settings), to use hostAddressLoopback option, write /Users/{user}/.wslconfig as below.
[wsl2]
networkingMode=true
hostAddressLoopback=true
  1. Then hostAddressLoopback does not work.

But it works when wrote as below.

[experimental]
networkingMode=true
hostAddressLoopback=true

I think hostAddressLoopback refers only experimental.networkinMode, not wsl2.networkingMode.

Expected Behavior

hostAddressLoopback works.

Actual Behavior

hostAddressLoopback does not work.

Diagnostic Logs

No response

Copy link

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:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@zcobol
Copy link

zcobol commented Jan 31, 2024

@euxn23 if you look at release 2.0.5 notes (https://github.com/microsoft/WSL/releases/tag/2.0.5) only networkingMode was promoted. hostAddressLoopback is still experimental. Try:

[wsl2]
networkingMode=true

[experimental]
hostAddressLoopback=true

@benhillis
Copy link
Member

Yeah looks like our docs are incorrect, I'll get that fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants