isValidIP.cpp