Java Long to IP Address longToIp(long i)

Here you can find the source of longToIp(long i)

Description

long To Ip

License

Apache License

Declaration

public static String longToIp(long i) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String longToIp(long i) {
        return ((i >> 24) & 0xFF) + "." + ((i >> 16) & 0xFF) + "." + ((i >> 8) & 0xFF) + "." + (i & 0xFF);
    }/*from w  w  w  . ja va 2 s  . c o  m*/
}

Related

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