WSL - Select static subnet and pinned IP address
Daniel Nashed – 22 January 2022 14:35:05
WSL is a very cool solution to run Linux applications.
But there is a limitation, which makes it difficult to use for Domino servers.
WSL assigns a random sub-net on every start.
I raised an issue at the WSL GitHub project https://github.com/microsoft/WSL/issues/7820.
For now I wrote a small helper tool to work-around this limitation.
Here is the source code and the binary:
https://github.com/nashcom/nshwsl
I only focused on re-creating the network and I am adding the IP as an alias.
There is also API to create a new end-point, but I am leaving this part to Microsoft to fix.
I hope this helps others..
-- Daniel
- Comments [0]