Fix get_ipaddress