added check public ip lib