Android / Java 下如何获取域名的IP
1 2 | InetAddress address =InetAddress.getByName("www.example.com"); System.out.println(address.getHostAddress()); |
1 2 | InetAddress address =InetAddress.getByName("www.example.com"); System.out.println(address.getHostAddress()); |