Fixed get_ip_address