Org.apache.http.nohttpresponseexception: The Target Server Failed To Respond
import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.ClientProtocolException; import org.apac
Solution 1:
It's obvious it's not a router-firewall related problem as you are under the same net, so there are only a few possibilities:
- There's nothing listening on that port on that IP on the server-side
- There's a local firewall on the server-side that is blocking that connection attempt
- You are not using WIFI so you're not under the same net.
You should make sure you can open that service some ther way, that would help you debugging where the culprit is. If you've already done this, I'd suggest using some debugging tool to trace TCP packets (I don't know either what kind of operating system you use on the destination machine; if it's some linux distribution, tcpdump
might help).
All that assuming you have the android.permission.INTERNET
permission in your AndroidManifest.xml file.
Post a Comment for "Org.apache.http.nohttpresponseexception: The Target Server Failed To Respond"