public static String geoLocate() throws IOException {
		try {
	        URL whatismyip = new URL("http://api.db-ip.com/addrinfo?addr="+ getextIp() +"&api_key="+ randomapi());
	        BufferedReader in = null;
	        try {
	            in = new BufferedReader(new InputStreamReader(
	                    whatismyip.openStream()));
	            String ip = in.readLine();
	            String[] ips = ip.split("\"");
	            String part2 = ips[11];
	            String part3 = ips[7];
	            if (part3.equals("US")) {
	            	part3 = "USA";
	            }
	            String part4 = part2 + ", " + part3;
	            return part4;
	        } finally {
	            if (in != null) {
	                try {
	                    in.close();
	                } catch (IOException e) {
	                    e.printStackTrace();
	                }
	            }
	        }
	    } catch (Exception ex) {
	    	return null;
	    }
	}