I'm using Windows 10 and Ubuntu on top of WSL. Tools like Eclipse and Code are running as traditional Windows applications. The server(s) that I develop are run on WSL; they launch Tomcat and NodeJS servers. The problem is that Windows does not see the Ubuntu ports and the WSL does not see the Windows services.
I believe WSL starts much as though it were a separate machine, hence the different port. Is it possible though to have it share the host networking? Ideally if I ran netstat in a Window console, I'd see the Tomcat and Node servers started under WSL, and vice versa. If memory serves, this would be possible had I been running Ubuntu as a VM using VirtualBox.
I have a similar question for Docker, but in this case, I'm interested specifically in non-Docker related services.
Followup: Per questions below, I have WSL 2:
wsl -l -v NAME STATE VERSION * Ubuntu-20.04 Running 2 openSUSE-Leap-15-1 Stopped 2 docker-desktop-data Running 2 fedoraremix Stopped 2 docker-desktop Running 2