Closed lauguillier closed 8 months ago
I think, "IP address of your host virtual network interface" would be better instead of "IP address of your host machine".
The output of ip addr
may be little bit confusing for new users. Alternatively, some PowerShell commands can be used to get the IP address from Windows side.
We've updated the docs here to be clearer! Thank you for the feedback :)
Documentation Issue
In https://learn.microsoft.com/en-us/windows/wsl/networking it is written "Obtain the IP address of your host machine by running this command from your Linux distribution: cat /etc/resolv.conf"; This is a wrong advice, as this file is intended to provide Domain Name Server addresses to the resolver, as stated in the manual page (https://manned.org/resolv.conf.5). It is not at all related to the computer IP address, unless relying on a twist made by automated generation of this file when this option is activated.
Link to documentation page
https://learn.microsoft.com/en-us/windows/wsl/networking
Suggested Improvements
You can get the computer IP address by using "ip addr" (see https://manned.org/ip.8)