Here you can find the source of longToRemoteAddrTo(long remoteAddr)
public static String longToRemoteAddrTo(long remoteAddr)
//package com.java2s; //License from project: Apache License public class Main { public static String longToRemoteAddrTo(long remoteAddr) { StringBuilder sb = new StringBuilder(); for (int i = 24; i >= 0; i -= 8) { long l = (remoteAddr >> i) & 0xff; if (sb.length() > 0) { sb.append("."); }/* ww w .j a v a 2s .c o m*/ sb.append(l); } return sb.toString(); } }