Skip to content

Conversation

@Shriya-23
Copy link
Contributor

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

…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.
@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 9b65b45:

✅ Validation status: passed

File Status Preview URL Details
WSL/networking.md ✅Succeeded View

For more details, please refer to the build report.

Copy link

@jobayer110 jobayer110 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants