One of the possible solution for you question is by creating an Http request for the wamp server address and that can be easily done in Android. The following code shows you how the http request is created for any URL you need.
Thread thread = new Thread(new Runnable(){
@Override
public void run() {
try {
try {
URL url = new URL("http://220.13.81.33");
HttpURLConnection urlc = (HttpURLConnection) url.openConnection();
urlc.setConnectTimeout(1000 * 5); // mTimeout is in seconds
urlc.connect();
if (urlc.getResponseCode() == 301) {
}
} catch (MalformedURLException e1) {
e1.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
catch (Exception e)
{
}
} catch (Exception e) {
e.printStackTrace();
}
}
});
thread.start();
It is obvious that you just put the IP or URL that you want in the URL constructor, but you have to take care about two important notes:
1-To make a request, you need to do that by using threading or by creating async task or, if you don't want to use threading you can enforce the android to deal with such requests in the main process of the android by adding the following policy in the code. However, this kind of solution needs SDK version more than 9.
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
2-If you are working on emulator and you want to connect on the local host, you have to use this address http://10.0.2.2:8080
since it is the local host address for Android.
Once the connect function is issued, a respond code will be returned otherwise an exception will be arise. The interpretations of the respond codes can be found in this link http://en.wikipedia.org/wiki/List_of_HTTP_status_codes , note please if the returned respond code was 301 that means the used will be redirected to the given URI and this an indication the Wamp sever is online. For the arise exceptions, most likely the Wamp server is offline. Thus, you need to do several testing for different scenario and see the outputs.
I hope that everything goes very well with you.