Skip to main content

imp.net.getserverinterfaces()

Retrieve the network interface sequence used for connection attempts on multi-interface devices

Availability

Device (from impOS™ 42)

Returns

Array of strings — the current network connection interface sequence

Description

This method returns the sequence of network interface classes that impOS™ is currently using to manage connection attempts. If impOS fails to connect using the current network interface, it will move on to the next interface in sequence. It returns to the start of the list if it fails to make a connection with the last interface in the sequence.

The sequence is provided as an array of Network Interface Identifiers: "wifi", "ethernet" and/or "cell".

You can specify your own network interface sequence using imp.net.setserverinterfaces().