How to find whether a hosted server is Alive or not(CP)

I've tried using the PING class in windows phone to know the status of the hosted server but it says that namespace cannot be used in windows phone.

My Android Equivalent code:
System.Net.NetworkInformation.Ping _pingobj = new System.Net.NetworkInformation.Ping();
System.Net.NetworkInformation.PingReply _pingreply = _pingobj.Send(edittextIP.Text);
this code works fine for android but not windows.

Please suggest me the one, which fulfills my requirement w.r.t CP development.


  • PeterDavisPeterDavis USMember ✭✭✭
    edited May 2014

    If you go down to Platforms, you'll notice Windows Phone is absent. The API documentation specifies which classes are available for which platforms.

    There's a GUI Ping app project here that has a Ping class you can use in your own apps. I haven't used it on the phones, so it might require some adaptation, but it looks to be a pretty usable Ping implementation.

    Here's another implementation.

Sign In or Register to comment.