Here you can find the source of ip2String(int ip)
public static String ip2String(int ip)
//package com.java2s; //License from project: Open Source License public class Main { public static String ip2String(int ip) { return String.format("%d.%d.%d.%d", ip & 0xff, (ip >> 8) & 0xff, (ip >> 16) & 0xff, (ip >> 24) & 0xff); }/*from w ww .ja v a 2 s. c om*/ }