Registry / networking / local-ip-address

local-ip-address

JSON →
library0.6.12rscratesunverified

Retrieves the system's local IP address and network interfaces on Linux, macOS, and Windows.

# Cargo.toml [dependencies] local-ip-address = "0.6.12"
INSTALL
IMPORT
SIG · LOCAL-IP-ADDRESS
L
local-ip-address
networkingrustv0.6.12
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.

local_ip
use local_ip_address::local_ip;

Gets the local IP address of the machine.

use local_ip_address::local_ip; fn main() { match local_ip() { Ok(ip) => println!("Local IP: {}", ip), Err(e) => eprintln!("Error: {}", e), } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.12latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources