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

networkMode=mirrored gives an error #11359

Open
1 of 2 tasks
linux649 opened this issue Mar 24, 2024 · 5 comments
Open
1 of 2 tasks

networkMode=mirrored gives an error #11359

linux649 opened this issue Mar 24, 2024 · 5 comments
Labels

Comments

@linux649
Copy link

Windows Version

Microsoft Windows [Version 10.0.19045.4046]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-1

Distro Version

Kali Linux 2024.1

Other Software

No response

Repro Steps

in .wslconfig:

[wsl2]
networkMode=mirrored

same thing with:

[experimental]
networkMode=mirrored

Expected Behavior

I can connect to my HTTP server directly from LAN.
https://learn.microsoft.com/en-us/windows/wsl/networking#mirrored-mode-networking

Actual Behavior

On startup:
wsl: Mirrored networking mode is not supported, falling back to NAT networking

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 Mar 24, 2024

@linux-coding649 mirrored networking is available in Windows 11 only. You're stuck with NAT mode in Windows 10,

@benhillis
Copy link
Member

Yes this looks by design. The error message could be a lot more clear, I'll look at improving that.

@chanpreetdhanjal
Copy link

Hi. Can you please collect networking logs by following the instructions below?
https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

@realies
Copy link

realies commented May 11, 2024

try using networkingMode instead of networkMode
ref: https://learn.microsoft.com/en-us/windows/wsl/networking#mirrored-mode-networking

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

No branches or pull requests

6 participants