MicrosoftDocs / WSL

Source code behind the Windows Subsystem for Linux documentation.
https://docs.microsoft.com/windows/wsl
Other
1.91k stars 568 forks source link

wsl hostname -i or -I #1834

Closed byroniac closed 10 months ago

byroniac commented 11 months ago

Documentation Issue

It says "hostname -i" here but should it be "hostname -I" instead? The example seems to be correct. But the paragraph mentions "hostname -i" which is different, and I think this is incorrect?

Link to documentation page

Accessing a WSL 2 distribution from your local area network (LAN)

Suggested Improvements

No response

akshat157 commented 11 months ago

Just noticed this issue myself and found https://github.com/MicrosoftDocs/WSL/issues/1818 which seems to be related, as well as confirms that wsl hostname -i (lowercase "i") is incorrect while wsl hostname -I (uppercase "i") is correct.

The docs need correction.

mattwojo commented 10 months ago

Thanks for pointing out this issue @byroniac and @akshat157! Fixed in https://github.com/MicrosoftDocs/WSL/pull/1848