Windows 11 Using WSL for website dev

Ray Jender 1 Reputation point
2022-01-13T22:19:29.54+00:00

I want the wsl linux to be on my local network 192.168.x.x rather than the 172.x.x.x

I have installed apache2 on the wsl ubuntu but can't browse to it from the host win 11.

Right now I can ping the wsl ubuntu instance from the host windows 11 to the wsl, but not from wsl to host windows.

Ideas?

Ray

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,402 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,274 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,243 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2022-01-13T22:21:27.087+00:00

    The product group for WSL actively monitors questions over at
    https://github.com/microsoft/WSL

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. Limitless Technology 39,381 Reputation points
    2022-01-14T20:10:04.427+00:00

    Hello @Ray Jender

    Windows Firewall will block all the traffic besides HTTP. Please create a new inbound rule in Windows Firewall console to allow ICMPv4 to AllPorts

    Hope this helps with your query,

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

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

    0 comments No comments