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.16"
For more details, see examples or doc.
Tested on
- Linux
- macOS
- Windows
- 11 Pro 22H2 22621.1848
- 11 21H2 22000.493
- 10 21H2 19044.1586