This currently refers to WSL1 but we need to account for the differences in WSL2. This portion specifically:
How do I access a port from WSL in Windows?
WSL shares the IP address of Windows, as it is running on Windows. As such you can access any ports on localhost e.g. if you had web content on port 1234 you could https://localhost:1234 into your Windows browser.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 9bd5bfb4-8a38-1f09-0d36-6b9abe9b8b08
- Version Independent ID: 156d9535-c2a5-bc8d-af24-342a13832abf
- Content: Frequently Asked Questions (FAQ)
- Content Source: WSL/faq.md
- Product: windows-subsystem-for-linux
- GitHub Login: @Taraj
- Microsoft Alias: taraj
This currently refers to WSL1 but we need to account for the differences in WSL2. This portion specifically:
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.