Here you can find the source of intToIp(int address)
public static String intToIp(int address)
//package com.java2s; //License from project: Open Source License public class Main { public static String intToIp(int address) { StringBuilder result = new StringBuilder(); result.append((address & 0xFF000000) >>> 24).append("."); result.append((address & 0x00FF0000) >>> 16).append("."); result.append((address & 0x0000FF00) >>> 8).append("."); result.append(address & 0x000000FF); return result.toString(); }//from w w w .j a v a 2 s. co m }