![]() Give this rule a descriptive name so it will be easily identifiable under the Firewall settings. If you aren’t sure which profile, select all to apply this rule. Under the Action tab, make sure to “Allow the connection” Go to Windows Firewall with Advanced SecurityĮnter a Specific local port your server is running under WSL, in this case, I have port 3000 running my node server. Nonetheless, here is how to allow your server to be accessible externally outside Windows 10’s host machine. Perhaps, in the future release, Microsoft would allow WSL to send a signal to the host when a specific port starts to listen inside WSL. Unlike some application that requests for firewall permissions when running the app the first time, WSL doesn’t prompt the host to allow for a specific port to open when you start a node or rails server inside the Ubuntu on Windows. This is not due to a lack of features or support from Windows Subsystem for Linux, but rather Windows 10, the host doesn’t know which port to open for external access. If you have already using Bash on Ubuntu on Windows (aka WSL) to do web development you will notice that any server instance running inside the Bash by default can only be accessed via localhost:portnumber. It would be OK if all you need is accessing the web app via the host-only method, meaning go to the address bar of the browser and enter If you need to access WSL server instance outside the host Windows 10, you would found out that it’s not accessible. Most modern stack like Ruby on Rails and Node.js works fairly well under WSL ( Creators Update at least). WSL offers native build tool-chains without ugly hack workarounds for Windows is a huge plus. ![]() As Microsoft stated, one of the major benefits for WSL is targeted towards the ever-growing web developer community. With the most recent major Creators Update, Microsoft is really trying hard to win some web developers back that left its Windows eco-system decades ago. ![]() I’m using it as my main go-to development environment for some time now. Windows 10’s Windows Subsystem for Linux ( WSL) is great.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |