Score:0

How to give each WSL distro a distinct IP address?

jm flag

How to give each WSL distro a distinct IP address, and then connect to those IP addresses via Windows?

I was curious if its possible to setup two different ubuntu distributions using WSL and somehow assign a unique IP address to each one of them, and then finally to write a winsock program under windows that can commute with each running WSL virtual machine using the IP address assigned to them.

Is it possible to configure a static IP address that is unique to each distro, and accessible from windows?

Krackout avatar
it flag
Surely not possible using WSL1, can't tell about WSL2. How about using proper VMs? WSL2 is a kind of VM actually.
fpmurphy avatar
in flag
Unlike WSL1, WSL2 has a virtualized ethernet adapter with its own unique IP address.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.