microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.46k stars 822 forks source link

Unable to access application (Webgoat/Webwolf) running on ports 8080/9090 via localhost on WSL #10290

Closed jawsino closed 1 month ago

jawsino commented 1 year ago

Windows Version

Windows version: 10.0.19045.3208

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.90.1

Distro Version

22.04

Other Software

Webgoat https://github.com/WebGoat/WebGoat/releases/download/v2023.4/webgoat-2023.4.jar

Repro Steps

  1. On WSL install OpenJDK 19 sudo apt install openjdk-19-jre-headless -y

  2. Create a folder called webgoat and cd into it. mkdir wegoat && cd webgoat

  3. Download the webgoat application v2023.4 jar file wget https://github.com/WebGoat/WebGoat/releases/download/v2023.4/webgoat-2023.4.jar

  4. Execute the command below to start the java application. java -Dfile.encoding=UTF-8 -Dwebgoat.port=8080 -Dwebwolf.port=9090 -jar webgoat-2023.4.jar

  5. Application should start in wsl. On the windows machine try to access the application using http://localhost:8080/webgoat. According to this WSL documentation, it should work but it doesn't.

image

Expected Behavior

I expect to be able to access the application from the browser based on the WSL documenation.

Actual Behavior

I am unable to access the application from any of the browsers.

Diagnostic Logs

No response

nwabel commented 1 year ago

I also have the same problem, hope someone can help us solve this problem

microsoft-github-policy-service[bot] commented 1 month ago

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!