Expose-WSL

Probably the simplest way to expose apps running on WSL to local network devices

No installation required.
Simply run this before starting your apps:

npx expose-wsl

Why I built it?

WSL provides a great environment for web develo…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Ionut-Cristian Florescu

Probably the simplest way to expose apps running on WSL to local network devices

No installation required.
Simply run this before starting your apps:

npx expose-wsl

Why I built it?

WSL provides a great environment for web developers working on Windows.

However, it's not always easy to access the applications running in WSL from the local network.

Whether you're working on a web app, a React-Native application, REST API, or have a database residing in a Docker container, you'll need to access it from a real mobile phone or simply from a different device.

While there are ways to achieve this, they are not always easy to implement.

Some of them require tackling with an NIC Bridge mode or manually downloading and applying a WSLHostPatcher.

Which are things you probably don't want to deal with when you're just trying to get your work done.

Here's where Expose-WSL comes into play.

How does it work?

Expose-WSL uses the excellent WSLHostPatcher built by CzBiX.

It automates the process of downloading the WSLHostPatcher release, decompressing the binary, running it to patch your WSL and giving you the most probable IP address of your WSL machine that can be accessed from the local network.

Supporting the project

If you find this tool useful, please 🙏star the repo spread the word, and consider ❤️ sponsoring my work.

I'm the author and maintainer of several open-source projects such as Mantine DataTable and tRPC-SvelteKit, and your support will help me keep them up-to-date and bug-free.
I might also be available for hire. If you need help with your project, feel free to contact me at the email address listed on my GitHub profile.


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Ionut-Cristian Florescu


Print Share Comment Cite Upload Translate Updates
APA

Ionut-Cristian Florescu | Sciencx (2022-12-13T17:44:18+00:00) Expose-WSL. Retrieved from https://www.scien.cx/2022/12/13/expose-wsl/

MLA
" » Expose-WSL." Ionut-Cristian Florescu | Sciencx - Tuesday December 13, 2022, https://www.scien.cx/2022/12/13/expose-wsl/
HARVARD
Ionut-Cristian Florescu | Sciencx Tuesday December 13, 2022 » Expose-WSL., viewed ,<https://www.scien.cx/2022/12/13/expose-wsl/>
VANCOUVER
Ionut-Cristian Florescu | Sciencx - » Expose-WSL. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/12/13/expose-wsl/
CHICAGO
" » Expose-WSL." Ionut-Cristian Florescu | Sciencx - Accessed . https://www.scien.cx/2022/12/13/expose-wsl/
IEEE
" » Expose-WSL." Ionut-Cristian Florescu | Sciencx [Online]. Available: https://www.scien.cx/2022/12/13/expose-wsl/. [Accessed: ]
rf:citation
» Expose-WSL | Ionut-Cristian Florescu | Sciencx | https://www.scien.cx/2022/12/13/expose-wsl/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.