Here you can find the source of longToIp(long i)
public static String longToIp(long i)
//package com.java2s; //License from project: Apache License public class Main { public static String longToIp(long i) { return ((i >> 24) & 0xFF) + "." + ((i >> 16) & 0xFF) + "." + ((i >> 8) & 0xFF) + "." + (i & 0xFF); }/*from w w w . ja va 2 s . c o m*/ }