<!--
{
  "availability" : [
    "visionOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoveatedStreaming",
  "identifier" : "/documentation/FoveatedStreaming/FoveatedStreamingSession/Endpoint/local(ipAddress:port:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foveated Streaming"
    ],
    "preciseIdentifier" : "s:17FoveatedStreaming0aB7SessionC8EndpointV5local9ipAddress4portAE7Network9IPAddress_p_AI10NWEndpointO4PortVtFZ"
  },
  "title" : "local(ipAddress:port:)"
}
-->

# local(ipAddress:port:)

Connects to a local endpoint by IP address and port number.

```
static func local(ipAddress: any IPAddress, port: NWEndpoint.Port) -> FoveatedStreamingSession.Endpoint
```

## Parameters

`ipAddress`

The IP of the local endpoint.

`port`

The port to connect to for the session management connection.

## Discussion> Note: The port is independent from the one used for streaming content, which is determined by the streaming provider.

---

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)