Function public_ip::addr_v4[][src]

pub async fn addr_v4() -> Option<Ipv4Addr>
This is supported on crate features dns-resolver or http-resolver only.
Expand description

Attempts to produce an IPv4 address with all builtin resolvers (best effort).

This function will attempt to resolve until the stream is empty and will drop/ignore any resolver errors.