On which is running the WebService. Like the one I can get in cmd.exe > ipconfig
:
What I would like to achieve is automatic IP configuration of Kestrel, like:
.UseKestrel(opts =>
{
opts.Listen(/*LocalIPv4ActiveAddress*/, 5000);
})
So I can switch my development machines with different active network interfaces (WiFi || Ethernet) and different local network IP addresses.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…