From the course: Learning Windows Subsystem for Linux

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Accessing a WSL network service

Accessing a WSL network service - Windows Tutorial

From the course: Learning Windows Subsystem for Linux

Accessing a WSL network service

- [Instructor] While WSL is primarily intended to be a sort of assistant for software development, we can use it like a regular Linux server as well. For example, we might be working on a web development project and we may want our colleagues to check out how our app runs before we push it to our production branch or something like that. In the previous video, we set up a small web app using node and express and we might want our colleagues on our network to review it before we commit the changes to production. Here in my browser, I can visit the address localhost:3000. Here's the app, but at this point only I can see it locally on my windows host. To make it available for other hosts on my local network, I'll need to make a few changes. First, I'll need to edit my node apps configuration to listen on all addresses, not just its local address. I'll switch to my WSL terminal and I'll stop running my node app with control C,…

Contents