Revert "IP address validation was improved"

This reverts commit 961dd1ca6adb1a645ed0935d9135c4c339dbeb37.