Skip to content

Update for WSL2: Accessing ports from WSL in Windows #433

@WSLUser

Description

@WSLUser

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions