A NetworkInterface represent an active network interface on the current system. It contains a list of InternetAddresss, that's bound to the interface.

Static Methods

list({bool includeLoopback: false, bool includeLinkLocal: false, InternetAddressType type: InternetAddressType.ANY}) → Future<List<NetworkInterface>>

Query the system for NetworkInterfaces.

Properties

addresses List<InternetAddress>
read-only

Get a list of InternetAddresss currently bound to this NetworkInterface.

index String
read-only

Get the index of the NetworkInterface.

name String
read-only

Get the name of the NetworkInterface.

Constructors

NetworkInterface()