mmupnp icon indicating copy to clipboard operation
mmupnp copied to clipboard

Advertise on specific IP address / multiple IP addresses on one interface

Open Anonym271 opened this issue 1 year ago • 2 comments

I am currently working on a system that can be active via DHCP and link-local at the same time and over the same interface, therefore having two valid IPv4 addresses on one interface. For what I have seen so far it only seems to be possible to make an advertisement per interface, not per address. Is this correct? If you can only advertise per interface, does mmupnp automatically take all addresses for the given interface into account? If not, how can I tell the library to advertise on multiple IP addresses at the same time?

Anonym271 avatar Feb 12 '24 10:02 Anonym271

Such special circumstances are not taken into account. MulticastSocket binds to Interface, but I've never checked how it behaves when you have multiple link-local addresses. I don't have such an environment, so I can't check. The source code is here, so I would appreciate it if you could check it out and modify it if necessary.

ohmae avatar Feb 12 '24 23:02 ohmae

Okay, thank you for the quick response. I will check it as soon as I have the time and resources available.

Anonym271 avatar Feb 13 '24 18:02 Anonym271