Here you can find the source of intToIp(int i)
public static String intToIp(int i)
//package com.java2s; public class Main { public static String intToIp(int i) { return (i & 0xFF) + "." + ((i >> 8) & 0xFF) + "." + ((i >> 16) & 0xFF) + "." + (i >> 24 & 0xFF); }/* w ww . j a v a2 s . co m*/ }