Here you can find the source of long2IP(long ipLong)
public static String long2IP(long ipLong)
//package com.java2s; public class Main { public static String long2IP(long ipLong) { StringBuffer ip = new StringBuffer(String.valueOf(ipLong >> 24) + "."); ip.append(String.valueOf((ipLong & 16711680) >> 16) + "."); ip.append(String.valueOf((ipLong & 65280) >> 8) + "."); ip.append(String.valueOf(ipLong & 255)); return ip.toString(); }/*from w w w. j a v a2 s.com*/ }