<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEIPv4Route",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEIPv4Route"
  },
  "title" : "NEIPv4Route"
}
-->

# NEIPv4Route

The settings for an IPv4 route.

```
class NEIPv4Route
```

## Topics

### Creating an IPv4 Route

[`-  initWithDestinationAddress:subnetMask:`](/documentation/NetworkExtension/NEIPv4Route/init(destinationAddress:subnetMask:))

Initialize the [`NEIPv4Route`](/documentation/NetworkExtension/NEIPv4Route) object.

[`+  defaultRoute`](/documentation/NetworkExtension/NEIPv4Route/default())

A convenience method for creating the default IPv4 route.

### Accessing IPv4 Route Properties

[`destinationAddress`](/documentation/NetworkExtension/NEIPv4Route/destinationAddress)

The destination network address of the route.

[`destinationSubnetMask`](/documentation/NetworkExtension/NEIPv4Route/destinationSubnetMask)

The destination network mask of the route.

[`gatewayAddress`](/documentation/NetworkExtension/NEIPv4Route/gatewayAddress)

The address of the next-hop gateway of the route.

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

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

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

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

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCoding`](/documentation/Foundation/NSCoding)

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)