docs: correct hostname flags and command references in networking.md #2429
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates the networking documentation to use the correct hostname flags so users receive accurate IP address information in WSL. Closes issue #2174
Changes Made:
Step 1 Replaced the Windows-host command example that used a lowercase -i:
-Old: wsl.exe --distribution hostname -i
-New: wsl.exe --distribution hostname -I
Step 2 Replaced the incorrect long option shown in the under-the-hood explanation:
-Old: hostname --ip-addresses
-New: hostname --all-ip-addresses
Step 3 Updated the IPv6/access section command that referenced the lowercase -i:
-Old: wsl hostname -i
-New: wsl hostname -I
Now it clearly explains that -i shows a placeholder/loopback IP, while -I shows all real IP addresses, so users don’t get confused and accidentally use the wrong command.
Files changed
WSL/networking.md
Closes Issue
#2174