Replaced IP address checking function with improved version.  Previous version did not detect IP addresses with less than 4 octets.