Expand description
Crate to figure out the system external IP
Structs§
- Consensus
- Consensus system that aggregates the various sources of information and returns the most common reply
- Consensus
Builder - Consensus builder
- DNSSource
- DNS Source of the external ip
- HTTP
Source - HTTP(s) Source of the external ip
- HTTP
Source Builder - IGD
- IGD Source of the external ip
Enums§
Traits§
- Source
- Interface for any kind of external ip source
Functions§
- get_
dns_ sources - Returns a collection of DNS sources to use to retrieve the external ip
- get_
http_ sources - Returns a collection of HTTP(s) sources to use to retrieve the external ip
- get_ip
Deprecated - For ease of use a single async function is enough to obtain the IP trying with all the default sources enabled.
- get_
ipv4 - For ease of use a single async function is enough to obtain the IPv4 trying with all the default sources enabled.
- get_
ipv6 - For ease of use a single async function is enough to obtain the IPv6 trying with all the default sources enabled.
- get_
sources - Returns a collection of all possible sources