Java IP Address to String ip2String(int ip)

Here you can find the source of ip2String(int ip)

Description

ip String

License

Open Source License

Declaration

public static String ip2String(int ip) 

Method Source Code

//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*/
}

Related

  1. convertIpToString(byte[] ip)
  2. inputStreamContent(InputStream is)
  3. ip2string(byte[] ip)
  4. ip2string(byte[] ips)
  5. ipToIPv4Str(byte[] ip)
  6. ipToString(final byte[] address)
  7. ipToString(final byte[] bytes)
  8. IpToString(int address)