Registry / networking / igd
library0.12.1rscratesunverified

Internet Gateway Device (UPnP) client for port forwarding and network configuration.

# Cargo.toml [dependencies] igd = "0.12.1"
INSTALL
IMPORT
SIG · IGD
I
igd
networkingrustv0.12.1
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.

search_gateway
use igd::search_gateway;

Search for a UPnP gateway on the local network.

use igd::search_gateway; match search_gateway() { Ok(gateway) => println!("Gateway IP: {}", gateway.addr.ip()), Err(e) => eprintln!("No gateway found: {}", e), }
Debug
Known issues
gotchaMay not work on all routers or networks; requires UPnP enabled.
fix
Ensure UPnP is enabled on the router and firewall allows discovery.
affects: >=0.12.0
Upgrade
Version history
0.12.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
igd — cargo add igd · libregistry