I've been looking through the Java API docs and the closest I can find is: InetAddress.getByAddress(byte[] addr) but that needs a 32-bit number. I want to do the same thing, but pass a String in the format: [0-255].[0-255].[0-255].[0-255] and have it tell me if the address is within a legal range... Does a function like that exist in the Java API (not 3rd party download)?