2014-11-03 3 views
0

내 컴퓨터에 PHP 파일을 작성했습니다, 내 휴대 전화에서 그것을 읽고 싶습니다 URL을 입력하면 파일에 성공적으로 액세스 할 수 있습니다 (내 컴퓨터 IP) /android/get_all_products.php 내 휴대 전화의 브라우저. 그러나 내 앱이 성공적으로 액세스 할 수 없으며 앱이 인터넷의 허가를 받았으며 다른 콘텐츠를 읽을 수 있습니다. 왜? 나에게 몇 가지 제안을 해줄 수 있니?내 컴퓨터에 wampserver 내 안드로이드 애플 리케이션을 연결하는 방법

 String content=new ReadOnline.DownloadTextTask().execute("(my computer ip)/android/get_all_products.php").get(); 
     Toast.makeText(this, content, Toast.LENGTH_LONG).show(); 

DownLoadTextTask는 다른 URL과 잘 어울리는 단어입니다. 나는이 문제를 해결 한

11-03 20:05:17.561 17519-17540/com.example.jifa.testonline D/Networking﹕ failed to connect to /192.168.1.191 (port 80): connect failed: ETIMEDOUT (Connection timed out) 
11-03 20:05:17.561 17519-17540/com.example.jifa.testonline D/Networking﹕ Error connecting 
11-03 20:05:17.591 17519-17519/com.example.jifa.testonline D/AAA﹕ [ 11-03 20:05:17.591 17519:17519 I/LBE-Sec ] 
ActivityManager.GetContentProvider->settings 
enter code here 
+2

시작에서 수 있도록 없음에서 허용하여 asynctask 호출. – greenapps

답변

0

는 모든 값을 httpd.conf의 모든에서 거부 삭제, 충분히 유일한 변경되지는에서()에 갔지을 제거하기 위해 모든

+0

그것은 매우 위험한 해결책입니다. 다른 사람들은 이것을 사용하면 안됩니다. – RiggsFolly

관련 문제