defaultNetworkInterface

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the defaultNetworkInterface to <networkInterface>
Summary

Determines which network interface should be used for socketed and HTTP connections.

Introduced4.6.3
OSmac, windows, linux
Platformsdesktop, server
Parameters
NameTypeDescription
networkInterface

An IPv4 address as a string. For example: "192.168.1.10"

Example
set the defaultNetworkInterface to "192.168.1.10"
Values
NameTypeDescription
The result

If the defaultNetworkInterface is not valid interface, an error is present in the result of the connection attempt.

RelatedProperty: sslCertificates
Description

Use the defaultNetworkInterface property on all desktop and server platforms to specify which network interface should be used for socketed and HTTP connections. This is useful if you have SSL certificates bound to a particular IP address.

If the defaultNetworkInterface is empty, the standard interface is used.

Note: SSL certificates are bound to a particular IP address. If your device has multiple network interfaces, to utilize your SSL certificate set the defaultNetworkInterface to the address specified in the certificate.