Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect "hostname -i" command in networking.md #2083

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

taoyouh
Copy link

@taoyouh taoyouh commented Dec 10, 2024

The lower case "-i" will return a "127.0.1.1" which is a loop back address. The address cannot be accessed from Windows side. The upper-case "-I" instead will return the outside address of the WSL instance seen by Windows.

Thus "-I" should be used instead of "-i" to get the host IP seen from WSL. There's already a note saying about this below the changed part.

This commit mainly reverts the change of PR #2033.

The lower case "-i" will return a "127.0.1.1" which is a loop back address. The address cannot be accessed from Windows side. The upper-case "-I" instead will return the outside address of the WSL instance seen by Windows.

Thus "-I" should be used instead of "-i" to get the host IP seen from WSL. There's already a note saying about this below the changed part.

This commit mainly reverts the change of PR MicrosoftDocs#2033.
Copy link
Contributor

Learn Build status updates of commit d434568:

✅ Validation status: passed

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

For more details, please refer to the build report.

For any questions, please:

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.

1 participant