Socket connection in CF 3.5 C#
===

I am trying to establish a communication between a handheld and a PC. 

I have the following code, for the *client*: 


        public void connect(string IPAddress, int port)
        {
                    // Connect to a remote device.
            try
            {
           	   IPAddress ipAddress = new IPAddress(new byte[] { 192, 168, 1, 10 });
               IPEndPoint remoteEP = new IPEndPoint(ipAddress, port);
               // Create a TCP/IP socket.
               client = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
               // Connect to the remote endpoint.
               client.BeginConnect(remoteEP, new AsyncCallback(ConnectCallback), client);
               if (connectDone.WaitOne()){
                     //do something..
               }
               else{
                     MessageBox.Show("TIMEOUT on WaitOne");
               }
            }
            catch(Exception e){
                     MessageBox.Show(e.Message);
            }
          }

My problem is that when I run both of them in a pc they communicate fine, but the same code in a SmartDevice Project doesn't connect with the Server which is running on the PC and it give me this error: 

    System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or stablished connection failed 
    because connected host has failed to respond

What am I missing?

NOTE: The IPAddress is hard coded inside the code

Thanks in advance for any help!