IPAddress ipAddress
= Network.GetServerIP(host);
IPEndPoint ipEndPoint
= new IPEndPoint(ipAddress,
port);
m_ClientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
m_ClientSocket.Connect(ipEndPoint); //throwing exception
-this works on a Windows CE 4.2 device but not a Windows CE 5.0 device (the devices are slightly different but it "should" not have anything to do with that)
-verified "Network.GetServerIP(host)" is returning the correct ip address and i'm using the correct port.
-verified the device can connect to internet
-verified windows ce 4.2 device can connect to server, i.e. open a socket.
-set logs on the server and server doesn't log anyone trying to connect when using ce 5.0 device
-message i'm recieving in generic exception is more or less "server refused connection" (very vague)
-the ce 4.2 device is a company specific device that no one will be familiar about and the ce 5.0 device is a similar newer conpany specific device.
-please first think about anything different between Windows before stating possible differences in devices