Giter Site home page Giter Site logo

wslnetworkbridge's Introduction

WSLNetworkBridge

A simple package containing the files I used to dynamically bridge network ports on WSL2. Tested with Windows 11 running ROS Melodic on a Turtlebot3.

Place the .exe and .dll files somewhere in your windows directory, and put the .sh anywhere you feel comfortable calling it from. You will have to edit the .sh to tell the program where your .exe is located.

After that, you will want to add the following line to your ~/.profile in WSL2, replacing the "{Your IP}" with your IP address. Note that this will prompt you for your password each time you login. There are probably better ways to do this, but it works: kfc="$(sudo ifconfig eth0:1 {Your IP} netmask 255.255.255.192 up)"

Now, whenever you want to connect to something that requires dynamic port bridging (i.e. connecting to another machine running ROS), you can simply run the .sh script. Note that running the bash script isn't necessary when running ROS locally- only when connecting to external machines like a Turtlebot.

Disclaimer:

Credits for the main executable and .dll go to CzBix from https://github.com/CzBiX/WSLHostPatcher. More information about WSL network problems and solutions can be found here: microsoft/WSL#4150 (comment)

If you have any questions feel free to email me at [email protected]

wslnetworkbridge's People

Contributors

echandler5956f avatar

Watchers

 avatar

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.