java.net.socketException:operation time out when running app on real device
this code works fine on emulator, but on real device it gives java.net.SocketException :the operation timed out ive got a php script running on my xampp server. package com.example.new1; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import android.os.AsyncTask; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.TextView; public class MainActivity extends Activity { TextView tx; StringBuilder stringBuilder; @Override protected void onCreate