commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Ivankovits" <ma...@ops.co.at>
Subject [NET] IP Address range check
Date Thu, 27 Mar 2003 15:20:38 GMT
I am currently searching a java class which can do an ip-address range (ip/subnet) check, but
havent found one.
Maybe one of you knows an class?

If not, might it be interesting for the NET group to have such an util?

I have to check if an address is within an given subnet. The syntax should be e.g. 172.27.0.0/16
and maybe 172.27.0.0/255.255.0.0
It should handle ipv4 (32bit) and ipv6 (128bit). I dont want regexp! It does not make the
same. Think of subnet 255.255.240.0.

If none of you knows a class, should I build one for the NET group?
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message