zeroconf
zeroconf copied to clipboard
published ip address not change when I switch network
One mdns daemon service published ip address 10.240.138.74, which is its current ip address. like the screen shot

After switch over network, its ip has changed to 10.0.1.2, but published ip address is still 10.240.138.74

One option is to listen for network interface changes (https://stackoverflow.com/a/50220033/332798) and then refresh/reload the mdns service.
Yes, that is what I'm going to do before zeroconf solves it. I guess RTNETLINK socket is not supported in windows now. Anyway, I'll try. Thanks for pointing the link.
@tmm1 do you have any good idea to listen for network interface change at windows?
Yes, see https://gist.github.com/LiamHaworth/72f96c28fc90936904ba70ae5299218f and https://stackoverflow.com/questions/44699710/calling-notifyipinterfacechange-from-go-caused-access-violation-exceptions