public static String inet_ntop(long longValue) {

		StringBuffer ip = new StringBuffer();

		if (longValue<0) {
			longValue=(long)(longValue+Math.pow(2, 32));
		}

		for (int i=3;i>=0;i--) {
			ip.append((int)(longValue / Math.pow(256,i)));
			longValue -= (int)(longValue / Math.pow(256,i))*Math.pow(256,i);

			if (i>0) ip.append(".");
		}

		return ip.toString();
	}