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

G

Guest

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top