unable to access localhost of WSL from windows.

Sharma, Shubham (GE Healthcare) 6 Reputation points
2022-06-09T09:45:44.477+00:00

In some machine I am unable to access wsl localhost .Though it works with IP of Linux Distribution Installed in WSL. As per document the localhost of Windows and WSL should be same. So why is there discrepancy in few systems and what is work around

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,537 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,266 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,070 questions
{count} vote

4 answers

Sort by: Most helpful
  1. Андрей Корень 6 Reputation points
    2022-06-11T18:01:57.103+00:00

    W67SB0присоеденяйся

    1 person found this answer helpful.
    0 comments No comments

  2. Karlie Weng 13,796 Reputation points Microsoft Vendor
    2022-06-14T01:36:46.587+00:00

    Hello @Sharma, Shubham (GE Healthcare)

    I would suggest to post this issue in Github, users there are more familiar with this issue and are better at solving it.

    211081-image.png

    Best Regards
    Karlie

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.
    0 comments No comments

  3. Limitless Technology 39,331 Reputation points
    2022-06-16T15:22:17.173+00:00

    Hi there,

    Check which version of WSL you are running.

    You can list your installed Linux distributions and check the version of WSL each is set to by entering the command: wsl -l -v in PowerShell or Windows Command Prompt.

    It is also recommend that you regularly update and upgrade your packages using the preferred package manager for the distribution.

    https://learn.microsoft.com/en-us/windows/wsl/install

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--

    1 person found this answer helpful.

  4. Nora Ahmed 6 Reputation points
    2022-06-18T07:39:51.897+00:00

    It must be Windows 10 or Windows 11