docs: correct hostname flags and command references in networking.md#2429
Open
Shriya-23 wants to merge 1 commit intoMicrosoftDocs:mainfrom
Open
docs: correct hostname flags and command references in networking.md#2429Shriya-23 wants to merge 1 commit intoMicrosoftDocs:mainfrom
Shriya-23 wants to merge 1 commit intoMicrosoftDocs:mainfrom
Conversation
…tion. Updated the networking documentation to use the correct hostname flags and commands: - Replaced `hostname -i` with `hostname -I` - Updated `hostname --ip-addresses` to `hostname --all-ip-addresses` - Ensured command explanations align with actual Linux behavior These changes improve accuracy and prevent confusion for users querying IP addresses in WSL.
Contributor
|
Learn Build status updates of commit 9b65b45: ✅ Validation status: passed
For more details, please refer to the build report. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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