Skip to main content

external_addr_with

Function external_addr_with 

Source
pub async fn external_addr_with(resolver: NatResolver) -> Option<IpAddr>
Expand description

Given a NatResolver attempts to produce an IP address (best effort).

ยงPanics

Network and interface resolution require an active Tokio runtime. Only NatResolver::ExternalIp and NatResolver::None are guaranteed to work without one.