---
title: "local(ipAddress:port:)"
framework: foveatedstreaming
role: symbol
role_heading: Type Method
path: "foveatedstreaming/foveatedstreamingsession/endpoint/local(ipaddress:port:)"
---

# local(ipAddress:port:)

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

## Declaration

```swift
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

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