NetworkInterfaces.Default
-------------------------

Queries default network interface.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [NetworkInterfaces](component_NetworkInterfaces.md) | [5.2](newinversion52.md) | ✅ Yes | ❌ No | ✅ Yes | ✅ Yes, on macOS and Linux | ✅ Yes |

MBS( "NetworkInterfaces.Default"; Selector ) 

**MBS**( **"NetworkInterfaces.Default";** /\* Queries default network interface. \*/  
**$Selector**) /\* What value to return. Default is name. Mode can be IP, IPv4, IPv6, Index, InterfaceIndex, Name or MAC.e.g. "IP" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Selector | What value to return. Default is name. Mode can be IP, IPv4, IPv6, Index, InterfaceIndex, Name or MAC. | "IP" |

### Result

Returns value or error.

### Description

Queries default network interface.  
Can be used to find IP, name or MAC of the default interface.  
Default is the first connected interface.  
### Examples

Queries name of default network interface:

 MBS ( "NetworkInterfaces.Default"; "Name" )  
Queries IP of default connection:

 MBS ( "NetworkInterfaces.Default"; "IP" )  
### See also

- [NetworkInterfaces.Count](NetworkInterfacesCount.md)
- [NetworkInterfaces.Update](NetworkInterfacesUpdate.md)
- [NetworkInterfaces.Value](NetworkInterfacesValue.md)

### Blog Entries

- [MBS FileMaker Plugin, version 5.2pr6](https://www.mbsplugins.de/archive/2015-07-10/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 8th July 2015 , last changed 19th March 2017

  
[NetworkInterfaces.Count](NetworkInterfacesCount.md) - [NetworkInterfaces.JSON](NetworkInterfacesJSON.md)

[HTML Version](NetworkInterfacesDefault.shtml)