wsl networking¶
all wsl instances use the SAME virtual network card ! with a random IP address on every boot so you have to bind webservers to different IP addrs and / or IP ports
cockpit¶
the ip address and port binding for cockpit is defined in
which is a symlink to
example¶
if your windows hypervnet is 172.24.219.113 you can add 2 extra ip addresses with
so each wsl instance now has THREE IP addrs
so on one wsl instance edit cockpit.socket
and on the other wsl instance edit cockpit.socket
restart cockpit in BOTH wsl instances with
from edge on your windows 10 host you can now access the two webservers at
refs
