Crate ipconfig

source ·
Expand description

Get network adapters information for windows.

Examples

// Print the ip addresses and dns servers of all adapters:
for adapter in ipconfig::get_adapters()? {
    println!("Ip addresses: {:#?}", adapter.ip_addresses());
    println!("Dns servers: {:#?}", adapter.dns_servers());
}

Modules

This module implements things that are related to the computer, rather than a specific adapter.

Structs

Represent an adapter.

Functions

Get all the network adapters on this machine.