get_public_ip_addr

Function get_public_ip_addr 

Source
pub fn get_public_ip_addr(
    ip_echo_server_addr: &SocketAddr,
) -> Result<IpAddr, String>
👎Deprecated since 3.0.0: Use get_public_ip_addr_with_binding instead
Expand description

Determine the public IP address of this machine by asking an ip_echo_server at the given address.