NetworkInterface QML Type

Provides a listing of the host's IP addresses and network interfaces. More...

Import Statement: import ArcGIS.AppFramework.Networking 1.0


Detailed Description

The NetworkInterface component represents one network interface attached to the host where the program is being run. Each network interface may contain zero or more IP addresses, each of which is optionally associated with a netmask and/or a broadcast address.

Instantiate the NetworkInterface component with this code sample, after which the properties can be used:

property var networkInterface : Networking.interfaces[0]

Property Documentation

[read-only] addresses : List<NetworkAddress>

Returns a list of associated IP addresses.

    text: JSON.stringify(networkInterface.addresses)

[read-only] canMulticast : bool

Returns true if the device has multicasting capabilities. Otherwise, returns false.


[read-only] displayName : string

Returns the human-readable name of this network interface, if the name can be determined. If it can't be, returns the same result as the name property.

    Text {

[read-only] hardwareAddress : string

Returns the low-level hardware address for this interface. The exact type of hardware address will depend on the interface type; for example, an Ethernet interface will return a MAC address separated by colons.


[read-only] isLoopback : bool

Returns true if the address given is a loopback address. The IPv4 loopback addresses are; the IPv6 loopback address is, or simply ::1.


[read-only] name : string

Returns the name of the network interface. on Unix-based systems, this is a string containing the type of the interface and sometimes a sequence number. On Windows, this is an internal ID the user cannot change.


[read-only] valid : bool

Returns true if the NetworkInterface object contains valid information about a network interface. Otherwise, returns false.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.