Windows Phone 7.1.1 Ping
- by Matt
I am writing an app to connect to a third party application using REST web services.
I have a configuration page that asks for an IP, Port, User Name & Password, currently it just blindly assumes you enter the correct details and attempts a connection.
I want to create a test routine that goes through and checks off the following steps when setting up the config information
Is the IP/Hostname correct (using ping or something)
Is the Port correct
Is the Username & Password correct
then displays the results on screen as it's going so that if it can't connect to the service it's easier to identify where the issue is.
To achieve step 1 I would like to use Ping or some equivalent that does not rely on a particular port being open. So I can eliminate dodgy DNS or a typo in the IP/Hostname.
I understand from previous questions asked that ping wasn't possible in 7.0 but with Mango the sockets classes have been added in, is it possible now, if so how? If it still isn't possible is there a different way I can achieve step 1?