Giter Club home page Giter Club logo

Comments (3)

traversaro avatar traversaro commented on August 20, 2024 1

We did not investigate in depth the case of networkingMode=mirrored, but for a related use case @S-Dafarra @marcoforleo @dariosortino found that it was useful to set hostname and other related settings in wsl.conf (https://learn.microsoft.com/en-us/windows/wsl/wsl-config#network-settings). In particular to avoid confusion it is useful to ensure that the Windows side and WSL side use different hostname (I am not sure that is the case for networkingMode=mirrored, but it was anyhow worth to mention here in case anyone had similar problems.

from robotology-superbuild.

dariosortino avatar dariosortino commented on August 20, 2024 1

I would add that probably the mirroring mode affects how the Windows Firewall interacts with WSL

from robotology-superbuild.

S-Dafarra avatar S-Dafarra commented on August 20, 2024 1

We did not investigate in depth the case of networkingMode=mirrored, but for a related use case @S-Dafarra @marcoforleo @dariosortino found that it was useful to set hostname and other related settings in wsl.conf (https://learn.microsoft.com/en-us/windows/wsl/wsl-config#network-settings). In particular to avoid confusion it is useful to ensure that the Windows side and WSL side use different hostname (I am not sure that is the case for networkingMode=mirrored, but it was anyhow worth to mention here in case anyone had similar problems.

Just to add some further info, we noticed the following. Despite running the roscore on Windows with an explicit IP set in the ROS_MASTER_URI, and an explicit ROS_IP, when running rostopic info /some_topic on WSL, the IP of the publishers/subscribers of some_topic was automatically resolved to the hostname. If the hostname is the same between Windows and WSL, then when trying to connect to the same topic, a connection is made using the hostname as the destination address. But then, the hostname is substituted with localhost instead of the actual IP specified with ROS_IP on the Windows side. As a result, we were not able to connect to the topics opened on Windows as localhost on WSL is physically a different address.

When instead specifying a different hostname in WSL (through the parameter hostname in the [network] group of wsl.conf), this problem was solved. In fact, the publisher/subscribers of Windows kept the Windows original hostname in the address, while the publishers/subscribers of WSL use the hostname of WSL. The nice thing is that Windows itself takes care of the routing. In other words, if we do ping original_hostname on the WSL side (with original_hostname the Windows hostname), this gets automatically resolved.

from robotology-superbuild.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.