Registry / networking / get-if-addrs

get-if-addrs

JSON →
library0.5.3rscratesunverified

Return interface IP addresses on Posix and windows systems

# Cargo.toml [dependencies] get_if_addrs = "0.5.3"
INSTALL
IMPORT
SIG · GET-IF-ADDRS
G
get-if-addrs
networkingrustv0.5.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_if_addrs
use get_if_addrs::get_if_addrs;

Lists all network interfaces and their IP addresses.

use get_if_addrs::get_if_addrs; fn main() { for iface in get_if_addrs().unwrap() { println!("{}: {}", iface.name, iface.ip()); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
get-if-addrs — cargo add get-if-addrs · libregistry