Replies: 6 comments 1 reply
-
See #4150 |
Beta Was this translation helpful? Give feedback.
-
I got the same issue trying to access a jasperreport server hosted by wsl . |
Beta Was this translation helpful? Give feedback.
-
This issue occurred to me today: a spring boot app launched from WSL2 was not reachable by another spring boot app launched from outside WSL when using PC hostname or localhost. I had to use IP address, but it's not really convenient, it could change. |
Beta Was this translation helpful? Give feedback.
-
In my case connection from Win to WSL2 by Java process depends on property Connection works for values system and true but does not work for false and when missing, because false is default See https://stackoverflow.com/a/71967275 for details |
Beta Was this translation helpful? Give feedback.
-
This is what helped me to connect VisualVM on Win10 over JMX to a Docker container running on WSL2: https://stackoverflow.com/a/71881475/1003113 |
Beta Was this translation helpful? Give feedback.
-
Environment
Windows 10 Home
Steps to reproduce
WSL logs:
Expected behavior
WSL webserver should be accessible with localhost from java application.
Actual behavior
could not connect the webserver with localhost. But I could connect with private IP from the same java application. Powershell
Invoke-WebRequest
command can also work with localhost.Beta Was this translation helpful? Give feedback.
All reactions