- Home /
System.EntryPointNotFoundException: CreateNLSocket
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
This doesn't seem related to Unity, does it work outside of Unity like a blank WPF project or some other C# codebase?
It's worth noting though that System.Net isn't going to behave nicely outside of desktop systems.
@TreyH yes, it works perfectly outside Unity. And at the moment I'm not planning to use any other platforms.
Same here, happens when using NetworkChange.NetworkAddressChanged
event.
Answer by cobaltmedia · Apr 29, 2019 at 11:55 PM
@eleonora_unity Did you ever find out how to get this to work? I'm having the same issue, it works under OSX, but not under Windows or iOS.
Your answer
![](https://koobas.hobune.stream/wayback/20220612181627im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
InvalidProgramException: Invalid IL code with Mono.Cairo on MacOS 0 Answers
DllNotFoundException on Mac OS X, only when Playing in Editor 0 Answers
DLL plugins unsupported for Android Application Building 0 Answers
How to use Yeppp! in Unity? 1 Answer
Failed to load DLL with error "The specified module cannot be found." 1 Answer