Socket not working under .net4.6 iOS

Unity 2017.1.f3 with .net4.6, iOS 10.X
when using Socket, if accessing socket.RemoteEndPoint, program will throw out errors like:
System.ArgumentException: The supplied System.Net.SocketAddress is an invalid size for the System.Net.IPEndPoint end point.
And furthormore, Socket will crash upon connect on iOS.

snapshot


I’m getting the same issue. The code that calls Socket is inside a DLL I’m using, not my own code, but the crash is identical at the top.

I got the same issue too. Will throw exception in UDPClient:Receive(ref IPEndpoint)
it works well on Win10/Mac/Android, but crash on iOS :frowning:

also have an error like this…

Warning: Libinfo call to mDNSResponder on main thread

System.ArgumentException: The supplied System.Net.SocketAddress is an invalid size for the System.Net.IPEndPoint end point.

Parameter name: socketAddress

at System.Net.IPEndPoint.Equals (System.Object comparand) [0x00000] in <00000000000000000000000000000000>:0