How to send data from .NET CF application using GPRS

  • Thread starter Thread starter Ali
  • Start date Start date
A

Ali

Hi.. i have an application whose client communicates with server using
sockets.. My application works well on internet but when i create a
smart phone application in C#.NET n try to run it on iMate jam an .NET
Socket error/exception occurs which says "Unknown Host"..
I am using ConnectionManager from OpenNETCF.Net..Code is

*---------------------------------------------------------*
bool connected = false;
ConnectionManger connMgr = new ConnectionManager();
connMgr.Connect(true, ConnectionMode.Asynchronous);
while(!connected)
{
if(connMgr.Status != ConnectionStatus.Connected)
{
Thread.Sleep(1000);
continue;
}
connected = true;



}


*---------------------------------------------------------*

I also run both client n server on the PDA (to check whether PDA
supports sockets or not) by placing "localhost" in client app as server
IP n to my surprise it works perfectly..
I think there is some .NET CF security problem..Now please somebody
tell me wat r the setting or steps which i have to do to make my client
app send data perfectly to server
 
Which port are you using?
I know that providers could have just a few ports openned (80, 443 etc..)
 
First i was 4444 but it didnt work.. Than i used port 80 because and i
accessed successfully a web page from my server machine running IIS,
but when i run my own server listening(TcpListener) on port 80 i again
got the Socket exception"Unknown Host"..(Note--> i uninstalled IIS
before i run my own server application in order to avoid conflict)..
I am confused now n its really urgent for me to solve this problem so
please tell me some solution/ known ports on which i communicate
successfully with my server..
Thanks for helping..
 
Back
Top