private String fetchIPText(String url, int timeout) {
		String ipText = null;
		try {
			URL urlConnection = new URL(url);

			HttpURLConnection conn = (HttpURLConnection) urlConnection.openConnection();
			conn.setConnectTimeout(timeout);
			conn.setRequestMethod("GET");

			conn.connect();
			InputStream in = conn.getInputStream();
			BufferedReader reader = new BufferedReader(new InputStreamReader(in));

			StringBuffer ipTextBuffer = new StringBuffer();
			String line;
			while ((line = reader.readLine()) != null) {
				ipTextBuffer.append(line);
			}
			ipText = ipTextBuffer.toString();

			conn.disconnect();
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return ipText;
	}