pub fn get_local_ip_with_default() -> String
Expand description
Get the IP address of the machine as a string
If the IP address cannot be obtained, returns “127.0.0.1” as the default value.
§Returns
String
- Native IP address (IPv4 or IPv6) as a string, or the default value