default-net

default-net
provides a cross-platform API for network interface and gateway.
- Get default Network Interface and Gateway information
- Get list of available Network Interfaces
Supported platform
Usage
Add default-net
to your dependencies
toml:Cargo.toml
[dependencies]
default-net = "0.15"
For more details, see examples or doc.
Tested on
- Linux
- macOS 11.6
- Windows
- Windows 10 21H2 19044.1586
- Windows 11 21H2 22000.493 (VM)
- Windows 11 Pro 21H2 22000.1335