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

# remote(serverName:signalingHeaders:)

Connects to a remote endpoint by server name.

```
static func remote(serverName: String, signalingHeaders: [String : String]) -> FoveatedStreamingSession.Endpoint
```

## Discussion

The framework uses the server name to look up the remote URL from the app’s <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/ApprovedStreamingEndpoints> in `Info.plist`.

- Parameter
  - serverName: The server name corresponding to an entry in the `ApprovedStreamingEndpoints` dictionary.
  - signalingHeaders: HTTP headers which the session forwards to the remote server. Use these headers for authentication and session management.

---

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)