Here you can find the source of long2ip(long address)
public static String long2ip(long address)
//package com.java2s; //License from project: Open Source License public class Main { public static String long2ip(long address) { long d = address & 0xFF; long c = (address >> 8) & 0xFF; long b = (address >> 16) & 0xFF; long a = (address >> 24) & 0xFF; return String.format("%d.%d.%d.%d", a, b, c, d); }/*from w w w. j a va 2s.c om*/ }