I am trying to calculate the last IP address from CIDR using Apache commons-net for IPV4
SubnetUtils su = new SubnetUtils(cidr);
SubnetInfo si = su.getInfo();
si.getHighAddress();
It won't work for IPV6, can anybody suggest some library to solve this issue?