Error java.net.SocketTimeoutException: Connection timed out
<p>I'm getting this error with my android application and I don't know what can be wrong. The application connects with a webservice and returns a JSON with some elements. I'm a little noobie in java and android, so if anyone can help I really appreciate. Here is my code:</p>

<pre><code>private static final String SOAP_ACTION = "http://serv.lageo.ufpr.br/GetJsonFixo";
private static final String METHOD_NAME = "GetJsonFixo";
private static final String NAMESPACE = "http://serv.lageo.ufpr.br/";
private static final String URL = "http://200.17.203.151/Caderneta/Sincronizar.asmx";

ArrayList&lt;Ponto&gt; arrayOfWebData = new ArrayList&lt;Ponto&gt;();

class Ponto {
    public String Ponto;
    public String Analise;
    public String idPonto;
    public String pontoNome;
    public String dtCampo;
    public String projeto;
    public String UTMEste;
    public String UTMNorte;     
    public String UTMFuso;
    public String UTMHemisferio;
    public String latDec;
    public String longDec;
    public String altitude;
    public String descPonto;
    public String complement;
    public String idAnCampo;
    public String nomeEstrutura;
    public String descEstrutura;        
}

FancyAdapter aa = null;

static ArrayList&lt;String&gt; resultRow;

@Override
protected void onCreate(Bundle savedInstanceState) {
    String result = "";
    try {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);

        SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        soapEnvelope.dotNet = true;
        soapEnvelope.setOutputSoapObject(request);

        HttpTransportSE aht = new HttpTransportSE(URL);
        aht.call(SOAP_ACTION, soapEnvelope);
        SoapPrimitive resultString = (SoapPrimitive) soapEnvelope.getResponse();
        result = resultString.toString();

        JSONObject object = new JSONObject(result);
        JSONArray jArray = object.getJSONArray("Ponto");
        for (int i = 0; i &lt; jArray.length(); i++) {
            JSONObject json_data = jArray.getJSONObject(i);
            Ponto resultRow = new Ponto();              
            resultRow.Ponto = json_data.getString("idPonto");
            resultRow.Ponto = json_data.getString("pontoNome");
            resultRow.Ponto = json_data.getString("dtCampo");
            resultRow.Ponto = json_data.getString("projeto");
            resultRow.Ponto = json_data.getString("UTMEste");
            resultRow.Ponto = json_data.getString("UTMNorte");
            resultRow.Ponto = json_data.getString("UTMFuso");
            resultRow.Ponto = json_data.getString("UTMHemisferio");
            resultRow.Ponto = json_data.getString("latDec");
            resultRow.Ponto = json_data.getString("longDec");
            resultRow.Ponto = json_data.getString("altitude");
            resultRow.Ponto = json_data.getString("descPonto");
            resultRow.Ponto = json_data.getString("complement");
            resultRow.Analise = json_data.getString("idAnCampo");
            resultRow.Analise = json_data.getString("nomeEstrutura");
            resultRow.Analise = json_data.getString("descEstrutura");
            arrayOfWebData.add(resultRow);
        }

        ListView myListView = (ListView) findViewById(R.id.myListView);

        aa = new FancyAdapter();

        myListView.setAdapter(aa);

    } catch (Exception e) {
        Log.e("ERROR", "ERROR IN CODE: " + e.toString());
        e.printStackTrace();
    }
}   

class FancyAdapter extends ArrayAdapter&lt;Ponto&gt; {
    FancyAdapter() {
        super(MainActivity.this, android.R.layout.simple_list_item_1, arrayOfWebData);
    }

    public View getView(int position, View convertView, ViewGroup parent) {
        ViewHolder holder;

        if (convertView == null) {
            LayoutInflater inflater = getLayoutInflater();
            convertView = inflater.inflate(R.layout.row, null);

            holder = new ViewHolder(convertView);
            convertView.setTag(holder);

        } else {

            holder = (ViewHolder) convertView.getTag();

        }

        holder.populateFrom(arrayOfWebData.get(position));
        return (convertView);
    }       
}

class ViewHolder {
    public TextView idPonto = null;
    public TextView pontoNome = null;
    public TextView dtCampo = null;
    public TextView projeto = null;
    public TextView UTMEste = null;
    public TextView UTMNorte = null;
    public TextView UTMFuso = null;
    public TextView UTMHemisferio = null;
    public TextView latDec = null;
    public TextView longDec = null;
    public TextView altitude = null;
    public TextView descPonto = null;
    public TextView complement = null;
    public TextView idAnCampo = null;
    public TextView nomeEstrutura = null;
    public TextView descEstrutura = null;

    ViewHolder(View row) {
        idPonto = (TextView) row.findViewById(R.id.idPonto);
        pontoNome = (TextView) row.findViewById(R.id.nomePonto);
        dtCampo = (TextView) row.findViewById(R.id.dataCampo);
        projeto = (TextView) row.findViewById(R.id.projeto);
        UTMEste = (TextView) row.findViewById(R.id.UTMNorte);
        UTMNorte = (TextView) row.findViewById(R.id.UTMEste);
        UTMFuso = (TextView) row.findViewById(R.id.UTMFuso);
        UTMHemisferio = (TextView) row.findViewById(R.id.UTMHemisferio);
        latDec = (TextView) row.findViewById(R.id.latDec);
        longDec = (TextView) row.findViewById(R.id.longDec);
        altitude = (TextView) row.findViewById(R.id.altitude);
        descPonto = (TextView) row.findViewById(R.id.descPonto);
        complement = (TextView) row.findViewById(R.id.complemento);
        idAnCampo = (TextView) row.findViewById(R.id.idAnCampo);
        nomeEstrutura = (TextView) row.findViewById(R.id.nomeEstrutura);
        descEstrutura = (TextView) row.findViewById(R.id.descEstrutura);
    }

    void populateFrom(Ponto r) {
        idPonto.setText(r.idPonto);
        pontoNome.setText(r.pontoNome);
        dtCampo.setText(r.dtCampo);
        projeto.setText(r.projeto);
        UTMNorte.setText(r.UTMNorte);
        UTMEste.setText(r.UTMEste);
        UTMFuso.setText(r.UTMFuso);
        UTMHemisferio.setText(r.UTMHemisferio);
        latDec.setText(r.latDec);
        longDec.setText(r.longDec);
        altitude.setText(r.altitude);
        descPonto.setText(r.descPonto);
        complement.setText(r.complement);
        idAnCampo.setText(r.idAnCampo);
        nomeEstrutura.setText(r.nomeEstrutura);
        descEstrutura.setText(r.descEstrutura);
    }
}
}
</code></pre>
