试试这个:
InetAddress address = InetAddress.getByName(new URL(urlString).getHost());
要获取原始IP:
String ip = address.getHostAddress();
欢迎分享,转载请注明来源:内存溢出
试试这个:
InetAddress address = InetAddress.getByName(new URL(urlString).getHost());
要获取原始IP:
String ip = address.getHostAddress();
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)