sync version of myip.get_ip and tests for it