Hi guys,

I'm trying to ping my website but all i get is a IOException.

I suppose i'm missing something?

Java:
try {
InetAddress address = InetAddress.getByName("www.google.com");
ServerSide.setText("Name: " + address.getHostName()+ " Addr: "+
address.getHostAddress()+ " Reach: " + address.isReachable(3000));

}
catch (UnknownHostException e) {
ServerSide.setText("colis");
}
catch (IOException e) {
ServerSide.setText("Unable to reach ");
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to