Java Long to IP Address long2IP(long ipLong)

Here you can find the source of long2IP(long ipLong)

Description

long IP

License

Open Source License

Declaration

public static String long2IP(long ipLong) 

Method Source Code

//package com.java2s;

public class Main {

    public static String long2IP(long ipLong) {

        StringBuffer ip = new StringBuffer(String.valueOf(ipLong >> 24) + ".");

        ip.append(String.valueOf((ipLong & 16711680) >> 16) + ".");
        ip.append(String.valueOf((ipLong & 65280) >> 8) + ".");
        ip.append(String.valueOf(ipLong & 255));

        return ip.toString();
    }/*from  w  w w.  j  a  v a2  s.com*/
}

Related

  1. long2ip(long ip)
  2. long2ip(long ip)
  3. long2ip(long ip)
  4. long2ip(long ip)
  5. long2ip(long ipLong)
  6. long2IP(long proper_address)
  7. long2IpAdress(long src)
  8. longToIp(long address)
  9. longToIp(long i)