Unable to resolve host : No address associated with hostname

一般形如:Unable to resolve host “www.xxxx.com” : No address associated with
hostname

碰到这个问题是在android系统中。

检测如下几点:

1. 浏览器使用了proxy,但是你的app没有。设置

System.setProperty("http.proxyHost", "my.proxyhost.com");
System.setProperty("http.proxyPort", "1234");

2. 浏览器可以访问网络,但是app不行?

3. 是不是SSL的原因。

自己的遇到这个问题,最终发现是app的网络设置有问题,改正后,就可以连接网络了。

  • 本文作者: 帐前卒
  • 本文链接: http://chillyc.info/2013/8595791/
  • 版权声明: 本博客所有文章除特别声明外,只能复制超链接地址,且必须注明出处!