---
title: matchRemotePrefix
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nenetworkrule/matchremoteprefix
---

# matchRemotePrefix

A number that specifies the remote sub-network that the rule matches.

## Declaration

```swift
var matchRemotePrefix: Int { get }
```

## Discussion

Discussion This property is NSNotFound for rules where matchRemoteEndpoint doesn’t contain an IP address.

## See Also

### Matching network traffic characteristics

- [matchRemoteEndpoint](networkextension/nenetworkrule/matchremoteendpoint.md)
- [matchLocalNetwork](networkextension/nenetworkrule/matchlocalnetwork.md)
- [matchLocalPrefix](networkextension/nenetworkrule/matchlocalprefix.md)
- [matchProtocol](networkextension/nenetworkrule/matchprotocol.md)
- [NENetworkRule.Protocol](networkextension/nenetworkrule/protocol.md)
- [matchDirection](networkextension/nenetworkrule/matchdirection.md)
- [NETrafficDirection](networkextension/netrafficdirection.md)
