<!--
{
  "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/NWProtocolIP",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network12NWProtocolIPC"
  },
  "title" : "NWProtocolIP"
}
-->

# NWProtocolIP

A network protocol for configuring the Internet Protocol on connections.

```
class NWProtocolIP
```

## Topics

### Handling IP Packets

[`class Metadata`](/documentation/Network/NWProtocolIP/Metadata)

Per-packet IP metadata you configure when sending and receiving packets.

### Configuring IP Connections

[`class Options`](/documentation/Network/NWProtocolIP/Options)

A container of options for configuring how IP is used on a connection.

[`static let definition: NWProtocolDefinition`](/documentation/Network/NWProtocolIP/definition)

The system definition of the Internet Protocol.

### Enumerations

[`enum ECN`](/documentation/Network/NWProtocolIP/ECN)

Flag values for Explicit Congestion Notifications in IP packets.

## Relationships

### Inherits From

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

### Conforms To

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

[`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)