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

# IPAddress

An abstract protocol you use to interact with IP addresses.

```
protocol IPAddress : Sendable
```

## Topics

### Creating Addresses

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

Initializes an IP address with a string.

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

Initializes an IP address with data.

### Inspecting Address Properties

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

The raw data of an IP address.

[`interface`](/documentation/Network/IPAddress/interface)

The interface associated with this address, such as the IPv6 scoped interface.

[`isLinkLocal`](/documentation/Network/IPAddress/isLinkLocal)

A Boolean indicating whether this address is in a link-local range.

[`isLoopback`](/documentation/Network/IPAddress/isLoopback)

A Boolean indicating whether this address is a loopback address for the local device.

[`isMulticast`](/documentation/Network/IPAddress/isMulticast)

A Boolean indicating whether this address is a multicast address.



---

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)