查询IP归属地
//查询ip归属地 String ip = "139.196.234.61"; URL url = new URL("http://www.36ip.cn/?ip=" + ip); BufferedReader r = new BufferedReader(new InputStreamReader(url.openConnection().getInputStream(),"UTF-8")); System.out.println(r.readLine().split(" ")[0]);