$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]=

See Also

$NetworkInterfaces  NetworkPacketCapture  NetworkPacketRecording  $NetworkConnected  $MachineAddresses  SystemInformation

Introduced in 2018
(11.3)