Connect To Server Database And pasrse data usind json parser

view story

http://stackoverflow.com – Here is My code im trying to connect to server database but giving exception socketexception network nt reachable but it working for localhost pls help me wat is da problem in dis code package com.example.test2; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.DefaultHttpClient; import org.json.JSONArray; import org.json.JSONObject; //import android.R; (HowTos)