Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to send some data using TCP via WiFi to a desktop PC.

I am using a TCP Listener and socket in the PD

I am using TCPClient in the windows mobile.

When the Mobile is connected to a PC ( not necessarily the server ), the winmo is able to send the data.

But when the mobile is connected to wifi, the same code fails.
I am getting a "SocketException"

But I am able to ping the server.

What may be the reason
Posted

AmitDey wrote:
I am getting a "SocketException"


Which one, there are many causes of Socket Exception, you need to capture the error code to determine the exact problem.
 
Share this answer
 
I am not able to see the message as it says something like


An error message is available for this exception but cannot be displayed because these messages are optional and are not currently installed on this device. Please install ‘NETCFv35.Messages.EN.wm.cab’ for Windows Mobile 5.0 and above or ‘NETCFv35.Messages.EN.cab’ for other platforms. Restart the application to see the message
 
Share this answer
 
AmitDey wrote:
because these messages are optional and are not currently installed on this device.


Well that is obviously your first step. It really is very difficult to guess what might be causing your problem without the message code or associated text. Assuming that you wrote this program you could try to get the error code in the exception catcher and display that. You should then be able to find out what the code means.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900