Fixed get_ip_address issue when specifying an interface