I don\'t need to validate that the IP address is reachable or anything like that. I just want to validate that the string is in dotted-quad (xxx.xxx.xxx.xxx) IPv4 format, w
If you are on windows you can make use of WSAStringToAddress and based on the return value we know, if the passed argument is valid IP or not. This supports both IPv4 & IPv6 from Windows 2000 onwards.