unable to access localhost of WSL from windows.


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.
6,006 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
3,545 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.
1,941 questions
1 vote

4 answers

Sort by: Most helpful
  1. Андрей Корень 6 Reputation points


    No comments

  2. Karlie Weng 8,216 Reputation points Microsoft Employee

    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.


    Best Regards


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

    No comments

  3. Limitless Technology 37,351 Reputation points

    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.



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

  4. Nora Ahmed 6 Reputation points

    It must be Windows 10 or Windows 11