bug fix in public ip detection.