novotnyllc / Zeroconf

Bonjour support for .NET Core, .NET 4.6, Xamarin, and UWP
MIT License
365 stars 90 forks source link

IPv6 Support #15

Closed smoy closed 3 years ago

smoy commented 9 years ago

Does this library support IPv6? It seems like the network code always use a IPv4 multicast address.

https://github.com/onovotny/Zeroconf/blob/master/Zeroconf.NetFx/NetworkInterface.cs#L83

It seems like this implementation does not delegate to Android's http://developer.android.com/reference/android/net/nsd/NsdServiceInfo.html which support boths IPv4 and IPv6.

clairernovotny commented 9 years ago

There's no specific IPv6 support yet but I'm happy to take a PR :) This code is a raw implementation of the Zeroconf RFC's and does not rely on any OS-specific code. I imagine it should work with IPv6 multicast with the right updates to the NetworkInterface class though.

smoy commented 9 years ago

Yea, I am exploring a solution that address both IPv4 & IPv6 environment as iOS 9 app store submission soon requires IPv6 support (well at the very least it has to work under DNS64/NAT64). Looking at the current code architecture, the iOS & android platform dependency only involves socket operation.

Both iOS & Android provides the entire ZeroConf stack, so to plug in those full stack implementation, it seems like quite a big refactoring in the current architecture.

eziante commented 8 years ago

I'm interested in the IPv6 support as well and I have tried to implement it already, but I have no way of testing it since I'm not able to compile it due to missing dependencies etc.

I've tried to add support for IPv6 as well as specifying what request you want (PTR, A, AAA, etc.)

clairernovotny commented 3 years ago

Closing due to age. Will take a PR if applicable.