Is there a specific data type for storing IP addresses in Java? I have one specific functionality requirement:

  1. Given an IP range and an IP, return true if it falls within it, false otherwise. For example: range 10.10.10.1-10.10.11.255 and IP 10.10.10.192 should return true.

I know of java.net.inetaddress but I believe it doesn't give me this functionality. Any ideas?

Edit
Report