views:

371

answers:

2

I've been trying to add Wi-Fi connectivity to my Windows Mobile 6.1 .NET CE 3.5 application but can't figure out why I get the following SocketException:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

at System.Net.Sockets.Socket.ConnectNoCheck(EndPoint remoteEP) at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) at System.Net.Connection.doConnect(IPEndPoint ep) at System.Net.Connection.connect(Object ignored) at System.Threading.ThreadPool.WorkItem.doWork(Object o) at System.Threading.Timer.ring()

ErrorCode 10060 (ConnectionTimedOut)

despite IE having perfect connectivity. Both IE and my application work fine over the cradle and GPRS connections.

Any ideas?

+1  A: 

Try connecting to the same server/resource in your code as in IE.

Retroactive answers are fun.

MusiGenesis
A: 

Dear all, I noticed that it is an older post but it is very similar to problem that I have. I have developed TCP client for WM6 on HTC and TCP server for PC and when my HTC and PC are connected via USB (activesync) Client and Sever are communicating, but when I use WIFI or GPRS (PC has fixed public IP address) client on HTC cannot connect to server. Does anybody has some idea or experience I would appreciated:)

thx, Zoran

Zoran
Hi Zoran, you will probably have more luck if you ask this as a new question.
kasey