Android HTTP post to PHP workin for intranet but not working for Internet
<p>I have to post some parameter from client side(android) to server side(php) using an HTTP POST request with parameters from android. I tried an example that is working in intranet(192.168.12.33) which is local ip of my system, But not working in internet(www.dillgates.pcriot.com) Its my website. Please can you any one help for me.</p>

<p>Here is my code. This is working if i replaced "192.168.2.3" instead of "www.dillgates.pcriot.com"</p>

<pre><code>public String httppost(String param1, String param2, String file) throws JSONException
{
    ArrayList&lt;NameValuePair&gt; nameValuePairs = new  ArrayList&lt;NameValuePair&gt;();      
    nameValuePairs.add(new BasicNameValuePair("param1", param1));
    nameValuePairs.add(new BasicNameValuePair("param2", param2));
    try
    {
        HttpClient httpclient = new DefaultHttpClient();
        HttpPost httppost = new HttpPost("http://192.168.2.3/5mine/GeoTracker/"+file);//Working
        //HttpPost httppost = new HttpPost("http://www.dillgates.pcriot.com/5mine/GeoTracker/"+file);//Not working
        httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
        HttpResponse response = httpclient.execute(httppost);
        the_string_response = convertResponseToString(response);
    }
    catch(Exception e)
    {
        Toast.makeText(GeoTrackerActivity.this, "ERROR " + e.getMessage(), Toast.LENGTH_LONG).show();
        System.out.println("Error in http connection "+e.toString());
    }
}
</code></pre>

<p>Here is the response, Whatever i got in Log cat.</p>

<p><img src="http://i.stack.imgur.com/AjiNP.png" alt="Logcat error"></p>

<p>Thanks in advance..:)</p>
