public static String getIP(String ipOrHost) {
		String ip = ipOrHost;
		if (InetAddresses.isInetAddress(ip)) {
			return ip;
		}
		try {
			ip = InetAddress.getByName(ipOrHost).getHostAddress();
		} catch (UnknownHostException e) {
			ip = "127.0.0.1";
			LOGGER.error("Error while resolving {} to IP. Use {} instead.", ipOrHost, ip);
			LOGGER.debug("Details : ", e);
		}
		return ip;
	}
Get IP form the given string.
<p/>
If the given ipOrHost is host name, it tries to turn it into IP.
If the host name is not available, it returns 127.0.0.1 instead.
ff

@param ipOrHost textual representation of ip or host name
@return ip
ngrinder-core/src/main/java/net/grinder/util/NetworkUtils.java