Here you can find the source of intToIp(int i)
public static String intToIp(int i)
//package com.java2s; //License from project: Apache License public class Main { public static String intToIp(int i) { return ((i >> 24) & 0xFF) + "." + ((i >> 16) & 0xFF) + "." + ((i >> 8) & 0xFF) + "." + (i & 0xFF); }/*w ww .j a v a 2s. c om*/ }