<!--
{
  "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_type_t",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@EA@nw_interface_type_t"
  },
  "title" : "nw_interface_type_t"
}
-->

# nw_interface_type_t

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

```
struct nw_interface_type_t
```

## Topics

### Creating an interface type instance

[`init(_:)`](/documentation/Network/nw_interface_type_t/init(_:))

Creates an instance of the interface type structure.

[`init(rawValue:)`](/documentation/Network/nw_interface_type_t/init(rawValue:))

Creates an instance of the interface type structure.

### Interface types

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

The network interface type used for communication over Wi-Fi networks.

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

The network interface type used for communication over cellular networks.

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

The network interface type used for communication over wired Ethernet networks.

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

The network interface type used for communication over local loopback networks.

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

The network interface type used for communication over virtual networks or networks of unknown types.

### Accessing the raw value

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

The raw value of this instance.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)