<!--
{
  "availability" : [
    "iOS: 9.0.0 - 18.0.0",
    "iPadOS: 9.0.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.11.0 - 15.0.0",
    "visionOS: 1.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEAppProxyTCPFlow/remoteEndpoint",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEAppProxyTCPFlow(py)remoteEndpoint"
  },
  "title" : "remoteEndpoint"
}
-->

# remoteEndpoint

An [`NWEndpoint`](/documentation/NetworkExtension/NWEndpoint) object containing information about the intended remote endpoint of the flow.

```
var remoteEndpoint: NWEndpoint { get }
```

## Discussion

If the flow’s corresponding socket was created using one of the high-level networking APIs such as <doc://com.apple.documentation/documentation/Foundation/URLSession> or <doc://com.apple.documentation/documentation/Foundation/NSURLConnection>, then the hostname property of the `remoteEndpoint` object contains the DNS name of the remote host. If the flow’s corresponding socket was created using the sockets API directly, then the hostname property of the `remoteEndpoint` object contains the IP address of the remote host.

---

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)