Updated getpublicIP

Minor updates