Java Integer to IP Address intToIp(int i)

Here you can find the source of intToIp(int i)

Description

int To Ip

License

Apache License

Declaration

public static String intToIp(int i) 

Method Source Code

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

public class Main {
    public static String intToIp(int i) {
        return ((i >> 24) & 0xFF) + "." + ((i >> 16) & 0xFF) + "." + ((i >> 8) & 0xFF) + "." + (i & 0xFF);
    }/*w ww  .j a  v  a 2s.  c om*/
}

Related

  1. int2ipstr(int addr)
  2. int2IpStr(long ip)
  3. intToIp(int address)
  4. intToIp(int i)
  5. intToIp(int i)
  6. intToIP(int intIP)
  7. intToIp(int ip)
  8. intToIP(int ipAddr)
  9. intToIp(int ipInt)