I have a function to connect to my ftp
clientSocket = new Socket(AddressFamily.Unspecified, SocketType.Stream, ProtocolType.Tcp);
clientSocket.Connect(new IPEndPoint(Dns.Resolve(remoteAddress).AddressList[0], remotePort));
But, with some computers, this doesn't work. The exception is
The system detected an invalid pointer address when it tried to use a pointer argument of a call.
If I change AddressFamily.Unspecified to AddressFamily.InterNetwork, problem is solved. I have to understand why there is this problem, why the original code works with certains computers but not with everyone... If someone could help me :)