I am currently using sun.net.util.IPAddressUtil to determine if the string entered by the user is a valid IP address. Is this considered part of the "core" Java classes? If not, what is a good way of checking for a valid IP address? I could create a new URL and catch the MalformedURLException but I think that falls under "using exceptions for flow control". Anyone have any bright ideas?