A common programming exercise is to write some code that will validate an IP address. IPv4 addresses are displayed canonically using dot-decimal notation and they consist of four decimal numbers or octets that range from zero to 255 separated by periods. For example, your IP address is 188.8.131.52.
Once you put it all together, you will end up with a form that looks like the one below:
Click on the image to see the IPv4 Address Validator in action.