Socket.SendToAsync(SocketAsyncEventArgs) method has inconsistent behavior on different platforms if used for UDP socket for sending datagram to loopback address. On Linux (Ubuntu 18.04.03 LTS x64) it returns synchronously and SocketAsyncEventArgs.SocketError is SocketError.ConnectionRefused. On Windows 10 it returns synchronously but SocketError is SocketError.Success.
Socket.SendToAsync(SocketAsyncEventArgs)method has inconsistent behavior on different platforms if used for UDP socket for sending datagram to loopback address. On Linux (Ubuntu 18.04.03 LTS x64) it returns synchronously andSocketAsyncEventArgs.SocketErrorisSocketError.ConnectionRefused. On Windows 10 it returns synchronously butSocketErrorisSocketError.Success.