Skip to main content

get_ip

Function get_ip 

Source
pub async fn get_ip() -> Result<ProviderResult, Error>
Expand description

Get public IP address using default configuration.

Uses all available protocols with the Strategy::First fallback strategy and a 10-second per-provider timeout.

ยงErrors

Returns Error::AllProvidersFailed if every provider fails.