Here you can find the source of intToIp(int ipInt)
public static String intToIp(int ipInt)
//package com.java2s; //License from project: Open Source License public class Main { public static String intToIp(int ipInt) { return new StringBuilder().append(((ipInt >> 24) & 0xff)).append('.').append((ipInt >> 16) & 0xff) .append('.').append((ipInt >> 8) & 0xff).append('.').append((ipInt & 0xff)).toString(); }/*from w ww.ja v a 2s .co m*/ }