Skip to main content

source_ip

Function source_ip 

Source
pub fn source_ip() -> Result<IpAddr>
Expand description

Determines the IP address of the network interface used by this host to contact the broader internet.

This is likely a private IP only reachable via the local network (if behind a NAT).