System.NetworkInterfaceCount

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aSystem.NetworkInterfaceCount

New in 5.5

Supported for all project types and targets.

Returns the count of NetworkInterfaces on the computer that are actually connected to a network.

Note

If an interface is not connected to the network, it will not be included in the count.

Example

This example lists the IP addresses of the network interfaces on the computer:

Var count As Integer
count = System.NetworkInterfaceCount

For i As Integer = 0 To count - 1
Listbox1.AddRow(System.NetworkInterface(i).IPAddress)
Next