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 18.104.22.168.
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.