Suppose you’re using an environment with the Windows Boundary Desktop Client and WSL2 as your shell of choice.
If you start a connection within the Windows Boundary Desktop Client and try connecting through WSL2, it will likely fail.
This is because the default WSL2 settings will NOT copy listening ports from Windows into the WSL2 environment.
On the contrary, all listeners from WSL2 will copy into Windows, making this super confusing. So if you initiate a connection through WSL2, you’ll be able to access it through your Windows Machine such as a Powershell SSH connection or an HTTP connection in your web browser.
Spent several hours and headaches trying to figure out what was going on.