code: static InetAddress inet4FromInt(int address) {
          byte[] addr = new byte[4];
          addr[0] = (byte) ((address >>> 24) & 0xFF);
          addr[1] = (byte) ((address >>> 16) & 0xFF);
          addr[2] = (byte) ((address >>> 8) & 0xFF);
          addr[3] = (byte) (address & 0xFF);
          try {
              return InetAddress.getByAddress(addr);
          } catch (UnknownHostException uhe) {
              throw new AssertionError("Should not reach here");
          }
      }
docs: Returns an InetAddress from the given IPv4 address
  represented as an int.