bug fix in get_ip_address.