Here you can find the source of intToIpaddr(int i)
public static String intToIpaddr(int i)
//package com.java2s; public class Main { public static String intToIpaddr(int i) { return (i & 0xFF) + "." + ((i >> 8) & 0xFF) + "." + ((i >> 16) & 0xFF) + "." + ((i >> 24) & 0xFF); }//from ww w . java 2 s . c om }