renamed getpublicip for later integration of ipv6 in hosts file