System.NetworkInterfaceCount

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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

Supported on Desktop, Web, Console.

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.

fa-info-circle-32.png
NetworkInterfaceCount is not supported for mobile projects.

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