Registry / networking / local-ipaddress

local-ipaddress

JSON →
library0.1.3rscratesunverified

Get your local IP address without panic.

# Cargo.toml [dependencies] local_ipaddress = "0.1.3"
INSTALL
IMPORT
SIG · LOCAL-IPADDRESS
L
local-ipaddress
networkingrustv0.1.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
use local_ipaddress::get;

Retrieves the local IP address safely, returning an Option.

use local_ipaddress::get; fn main() { match get() { Some(ip) => println!("Local IP: {}", ip), None => println!("Could not determine local IP"), } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
local-ipaddress — cargo add local-ipaddress · libregistry