<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_interface_t",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@T@nw_interface_t"
  },
  "title" : "nw_interface_t"
}
-->

# nw_interface_t

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

```
typealias nw_interface_t = any OS_nw_interface
```

## Topics

### Network Interface Types

[`nw_interface_type_t`](/documentation/Network/nw_interface_type_t)

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

### Inspecting Interfaces

[`nw_interface_get_type(_:)`](/documentation/Network/nw_interface_get_type(_:))

Accesses the type of the interface, such as Wi-Fi or Loopback.

[`nw_interface_get_name(_:)`](/documentation/Network/nw_interface_get_name(_:))

Accesses the name of the interface.

[`nw_interface_get_index(_:)`](/documentation/Network/nw_interface_get_index(_:))

Accesses the system interface index associated with the interface.



---

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)