<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 12.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/NWInterface",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network11NWInterfaceV"
  },
  "title" : "NWInterface"
}
-->

# NWInterface

An interface that a network connection uses to send and receive data.

```
struct NWInterface
```

## Topics

### Inspecting Interfaces

[`type`](/documentation/Network/NWInterface/type)

The type of the interface, such as Wi-Fi or loopback.

[`NWInterface.InterfaceType`](/documentation/Network/NWInterface/InterfaceType)

Types of network interfaces, based on their link layer media types.

[`name`](/documentation/Network/NWInterface/name)

The name of the interface.

[`index`](/documentation/Network/NWInterface/index)

The system interface index associated with the interface.

### Comparing Interfaces



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)