Is there an easy way to verify that an IP number the user entered is valid in form? I mean, I know that you can parse the
string and check for 3 periods and that there aren't more than 3 numbers between periods, but I was wondering if there was a simpler way.
I tried using InetAddress.getByName(String), but getByName will actually alter the String it is passed to make it fit! (ex: 121.0.55 becomes 121.0.0.55, 121 becomes 0.0.0.121)