当我试图通过Android设备运行我的应用程序时,我得到错误
Error in http connection org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.0.105 refused.
我在计算机和设备上使用相同的网络 在我的主动活动中我有
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();
我的ipconfig活动是
public class IpconfigActivity {
public static String ip="192.168.0.105";
}
任何人都可以帮我解决这个问题吗?