 
    
qc_get_network_interfaces
Gets a list of network interfaces available.
interfaces = qc_get_network_interfaces(family) % restrict the list to the given address family interfaces = qc_get_network_interfaces % do not restrict the list
Returns a list of the network interfaces available as a structure array containing information about each interface, such as its IP address and interface index.
The family argument may be used to restrict the list to a particular address family. Valid values for the family argument are:
| Values | Description | 
|---|---|
| 'both' or 'af_unspec' | Return both IPv4 and IPv6 interfaces. | 
| 'ipv4' or 'af_inet' | Return only IPv4 interfaces. | 
| 'ipv6' or 'af_inet6' | Return only IPv6 interfaces. | 
family
A string indicating the address family to which to restrict the list.
interfaces
A structure array containing information about each of the network interfaces.
interfaces = qc_get_network_interfaces('ipv4'); % Returns information about IPv4 interfaces.
         
    
Copyright ©2025 Quanser Inc. This page was generated 2025-06-17. "
                Submit feedback to Quanser about this page.
Link to this page.