2012年11月22日
摘要: android通过网址或者域名得到IP地址public static String GetInetAddress(String host){String IPAddress = ""; InetAddress ReturnStr1 = null;try {ReturnStr1 = java.net.InetAddress.getByName(host);IPAddress = ReturnStr1.getHostAddress();} catch (UnknownHostException e) {// TODO Auto-generated catch blocke.pr 阅读全文
posted @ 2012-11-22 14:07 DDC's blog 阅读(615) 评论(0) 推荐(0) 编辑