An NWEndpoint
object containing information about the intended remote endpoint of the flow.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
Framework
- Network
Extension
Declaration
var remoteEndpoint: NWEndpoint { get }
Discussion
If the flow’s corresponding socket was created using one of the high-level networking APIs such as URLSession
or NSURLConnection
, then the hostname property of the remote
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 remote
object contains the IP address of the remote host.