System.NetworkInterfaceCount
From Xojo Documentation
Read-Only Property (As Integer )
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: