$DefaultNetworkInterface

$DefaultNetworkInterface

gives the default network interface used on your machine.

Details

  • Network interfaces are specified by string names such as "en0".
  • $NetworkInterfaces gives a list of all network interfaces on your machine.

Examples

Basic Examples  (1)

Show the default network interface on your machine:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2018
(11.3)