Here you can find the source of numberToIpv4(BigInteger ipNumber)
public static String numberToIpv4(BigInteger ipNumber)
//package com.java2s; /*//from ww w. j a v a 2s. com * Copyright (C) 2010 Viettel Telecom. All rights reserved. * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ import java.math.BigInteger; public class Main { public static String numberToIpv4(BigInteger ipNumber) { String ipString = ""; BigInteger a = new BigInteger("FF", 16); for (int i = 0; i < 4; i++) { ipString = ipNumber.and(a).toString() + "." + ipString; ipNumber = ipNumber.shiftRight(8); } return ipString.substring(0, ipString.length() - 1); } }