get_public_ip_addr_with_binding

Function get_public_ip_addr_with_binding 

Source
pub fn get_public_ip_addr_with_binding(
    ip_echo_server_addr: &SocketAddr,
    bind_address: IpAddr,
) -> Result<IpAddr>
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Expand description

Determine the public IP address of this machine by asking an ip_echo_server at the given address. This function will bind to the provided bind_addreess.