Hello guys, I hope you can help me with it.
I'm trying to use a library in Unity for MDns. It's called Tmds.MDns. But when I use their StartBrowsing method to find servers I get this exception:
System.EntryPointNotFoundException: CreateNLSocket
at (wrapper managed-to-native) System.Net.NetworkInformation.LinuxNetworkChange.CreateNLSocket()
at System.Net.NetworkInformation.LinuxNetworkChange.EnsureSocket () [0x00021] in <3acaa45225a54f778710ee6eff26f77f>:0
at System.Net.NetworkInformation.LinuxNetworkChange.Register (System.Net.NetworkInformation.NetworkAddressChangedEventHandler d) [0x00000] in <3acaa45225a54f778710ee6eff26f77f>:0
at System.Net.NetworkInformation.LinuxNetworkChange.add_NetworkAddressChanged (System.Net.NetworkInformation.NetworkAddressChangedEventHandler value) [0x00000] in <3acaa45225a54f778710ee6eff26f77f>:0
at System.Net.NetworkInformation.NetworkChange.add_NetworkAddressChanged (System.Net.NetworkInformation.NetworkAddressChangedEventHandler value) [0x00021] in <3acaa45225a54f778710ee6eff26f77f>:0
at Tmds.MDns.ServiceBrowser.StartBrowsing (System.Threading.SynchronizationContext synchronizationContext) [0x0005c] in C:\Users\EleonoraSeu\Desktop\MyProject\Assets\_Script\Packages\sila_library\src\discovery\Tmds.MDns\ServiceBrowser.cs:223
at Tmds.MDns.ServiceBrowser.StartBrowse (System.Collections.Generic.IEnumerable`1[T] serviceTypes, System.Threading.SynchronizationContext synchronizationContext) [0x00026] in C:\Users\EleonoraSeu\Desktop\MyProject\Assets\_Script\Packages\sila_library\src\discovery\Tmds.MDns\ServiceBrowser.cs:45
at Tmds.MDns.ServiceBrowser.StartBrowse (System.Collections.Generic.IEnumerable`1[T] serviceTypes, System.Boolean useSynchronizationContext) [0x0000f] in C:\Users\EleonoraSeu\Desktop\MyProject\Assets\_Script\Packages\sila_library\src\discovery\Tmds.MDns\ServiceBrowser.cs:74
at Tmds.MDns.ServiceBrowser.StartBrowse (System.String serviceType, System.Boolean useSynchronizationContext) [0x0000d] in
It's a bit weird cause it doesn't work even if the servers are running in the same computer and I'm using windows, so I don't know why it's using NetworkInformation.LinuxNetworkChange
Thanks in advance
↧