No connection between TcpListener (WinXP) <--> TcpClient (WinCE)

No connection between TcpListener (WinXP) <--> TcpClient (WinCE)

Post by V2ViSnVtcG » Tue, 06 Sep 2005 16:33:03


Hi all,

I have really trouble with my apps I'm developing!

On the desktop computer I'm running Windows XP SP2. On the mobile device
runs Windows CE 4.1. I have installed ActiveSync 4.0.0.
My problem is that I don't get a connection between these two devices using
TcpListener and TcpClient (.Net Framework and compact framework).

ActiveSync works great. This means, I can transfer files between my devices,
surf from the mobile device in the internet, etc.

When I'm trying to ping WinCE (192.168.55.101), this operation fails every
time, no answer from the mobile device, same the other way arround.

I've testet my apps with the WindowsCE emulator: works perfekt!

I do not understand why I can't ping the device or transfer data over the
TCP connection, because of I can surf the web from mobile device and this
should be done over the TCP connection!??!?

The mobile device is connected to desktop computer over usb cable.

I'll think when I get the mobile device pinged, the TCP connection should
work, too.

For each assistance I am grateful !!!

Regards,
Stefan
 
 
 

No connection between TcpListener (WinXP) <--> TcpClient (WinCE)

Post by V2ViSnVtcG » Tue, 06 Sep 2005 22:13:05

I solved the problem myself.
I don't understand why, but it works!

Desktop:
this.tcpServerListener = new TcpListener(IPAddress.Parse("127.0.0.1"),
this._port);
this.tcpServerListener.Start();

WindowsCE:
this.tcpClient = new TcpClient();
this.tcpClient.Connect(new IPEndPoint(IPAddress.Parse("192.4.3.55"),
this._port)); //192.4.3.55 = Network-IP from server networkcard

 
 
 

No connection between TcpListener (WinXP) <--> TcpClient (WinCE)

Post by Alex Yakhn » Tue, 06 Sep 2005 23:18:05

The 192.168.55.101 is internal address that is used inside of ActiveSync.

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com
www.opennetcf.org