Add function docstring for get_public_ip.