Access a localhost running in Windows from inside WSL2?

I am running a local AEM server in my Windows machine. The server is running on localhost:4502. I am using Ubuntu distro running in WSL2 for my development. I want to access the localhost:4502 running in the Windows machine in my WSL2 Ubuntu.

Is there any way to do that or is it not possible ?

Source: Windows Questions

LEAVE A COMMENT