Here you can find the source of bytesToIpString(byte[] bytes)
public static String bytesToIpString(byte[] bytes)
//package com.java2s; //License from project: Apache License public class Main { public static String bytesToIpString(byte[] bytes) { return new StringBuffer().append(bytes[0] & 0xFF).append('.').append(bytes[1] & 0xFF).append('.') .append(bytes[2] & 0xFF).append('.').append(bytes[3] & 0xFF).toString(); }// w ww .java2 s . c o m }