Ping IP in Windows Mobile 6.0

  • Hi,

    i am opening  website on Windows Mobile 6.0 that is hosted on Server.When there is error in connection with server(unable to ping server). I want to show an Message "Retry Again".

    So , for this i want to create an Windows Mobile application in C#.Net that  continuously  ping an  IP of  server and if there is error in connection i want to show error message.

     how can i do this ?

    Thanks & Regards ,

    Aniruddha

  • Aniruddha,

    Here's an example:  http://community.psion.com/support/f/17/p/11891/40253.aspx#40253

     

  • Thanks  STEVEN.

    I  have one more query..

    I have to create an Smart device application for Windows Mobile 6.0 in C#.Net that runs automatically at start up and check Following condition : 

    • On Windows Mobile 6 we are browsing an Website in  WiFi Network . If WiFi connection loosed then i have to show an pop up message that "Wifi Connection not available" having button "Retry" . On Clicking "Retry"  i have to check whether server is in Network or not using  PING method.

                 Because i don't want to loose state of page .

    • Can i Create  Service On Windows Mobile  6.0 in C# to ping IP continuously ?  

    Thanks,

    Aniruddha.

  • Are you asking whether or not its possible to ping continuously?  Or, are you asking for a C# example for pinging?

    The answer to the first is sure:  you can ping continuously if you want.  That may lead to slow performance of the device overall.

    I'm not sure why you would (or should) ping continuously.  If it were me, I would only ping the server that I was connecting to only after setting up the WiFi connection.

    Past that, I would only consider repinging the server if things like socket functions or HttpRequest operations started to fail.  I'm assuming you are doing some type of WebService or TCP/IP communication, correct?

  • Aniruddha,

    In case it helps, let me bring Sean Kennedy's « Wait For Network » demos to your attention.

    Kind regards,
    Jacques