Fixed IpChecker and merged duplicated code into a single static method WsUtil::ipValid