Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL2 can't connect to yarpserver running on Windows native as of June 2022 #1191

Open
traversaro opened this issue Jun 28, 2022 · 5 comments

Comments

@traversaro
Copy link
Member

Both me and @FabioBergonti are not able to configure a mixed WSL2/Windows host system with a YARP network as described in https://github.com/robotology/robotology-superbuild#connect-to-a-yarp-server-on-a-windows-host-on-wsl2 . In particular, the Linux system is not able to connect to a yarpserver launched on Windows, while a Windows client can connect to a yarpserver launched on Linux.

A simpler version of this problem is that Linux can't ping the Windows host, so the issue can be related to microsoft/WSL#4171 .

@traversaro traversaro changed the title Non-working WSL2 configuration as of June 2022 WSL2 can't connect to yarpserver running on Windows native as of June 2022 Jun 28, 2022
@traversaro
Copy link
Member Author

I am quite sure that this configuration was working fine back in #468 when I wrote that documentation, as for sure I tried back then.

@pattacini @Nicogene (and perhaps @sgiraz) do you have any experience with this problem?

@pattacini
Copy link
Member

pattacini commented Jun 28, 2022

Hi @traversaro

I've just made a quick test with this scenario:

  • WINDOWS
    • YARP version 3.7.0+46-20220616.6+gitdd9bc1f65.
    • Launched yarpserver --write
    • Launched yarp read /read
  • WSL2
    • robotology-superbuild v2022.05.0
    • yarp where can see the server correctly 👍🏻
    • yarp write ... /read can send messages correctly 👍🏻

@traversaro
Copy link
Member Author

Thanks @pattacini ! Can you also test on Linux/WSL2 if:

ping $(grep nameserver /etc/resolv.conf | awk '{print $2}')

is working? If that is working on your system (it does not work for me), I guess this may be related to firewall settings.

@pattacini
Copy link
Member

Yep, I can confirm that the ping works smoothly.

@sgiraz
Copy link
Contributor

sgiraz commented Jun 29, 2022

cc @vvasco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants