Input validation rule that tests for a valid “dot-notation” IPv4 address.
$form->addRule (new IPAddressRule ('fieldName'));
This example checks that the value in the field “fieldName” is a valid IP address (for example: 10.0.0.1).
10.0.0.1