fix to get public ip address