android - I am making a simple login check application -


when trying run application through android device gets error as

error in http connection org.apache.http.conn.httphostconnectexception: connection http://192.168.0.105 refused.  

i using same network computer , device.
in mainactivity have

httpclient httpclient = new defaulthttpclient();  httppost httppost = new httppost("http://"+ip+"//zeditsho_app/login.php");                            httppost.setentity(new urlencodedformentity(namevaluepairs));                             httpresponse response = httpclient.execute(httppost);                             httpentity entity = response.getentity(); 

and ipconfig activity

public class ipconfigactivity {     public static string ip="192.168.0.105";  } 

could me sort out this?


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -