local-ip-address
local-ip-address copied to clipboard
Retrieve system's local IP address and Network Interfaces/Adapters on FreeBSD, Linux, macOS and Windows
Calling `local_ip()` on macOS when using e.g. `en1` instead of `en0` (with the latter not being assigned an IP at all) yields the following, slightly misleading error message: ``` PlatformNotSupported("macos")...
hi, Checked the reported error on `getifaddrs` failed, https://github.com/EstebanBorai/local-ip-address/blob/main/src/macos.rs#L38 I think it's more reasonable to return the specific os error from` std::io::Error::last_os_error()`
I've been using local_ip() to get the ip address of an ubuntu 22 server that has been running with a DHCP assigned ip address (ethernet), which works perfectly. Recently I've...
As part of the RoSctober Race presented by [Race of Sloths](https://race-of-sloths.com/), we recognized this repo to be highly valuable in the open-source movement. Existing and new contributors will be rewarded...