I have a web app hosted in a Docker container and exposes port 5050 that is mapped to port 80 of the container. The web app listens on 0.0.0.0:5050. The Docker engine runs on WSL2.
Now when I open a browser on Windows and go to http://localhost:5050, everything works and I can see the web app.
But I don't understand how the request can reach the Docker container when I navigate to localhost on Windows.
Any ideas ?