<!--
{
  "availability" : [
    "iOS: 4.1.0 -",
    "iPadOS: 4.1.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKInvite/isHosted",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKInvite(py)hosted"
  },
  "title" : "isHosted"
}
-->

# isHosted

A Boolean value that indicates whether you host the game on your own servers.

```
var isHosted: Bool { get }
```

## Discussion

If the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, you host the game on your own servers. If the value is <doc://com.apple.documentation/documentation/Swift/false>, Game Center hosts the peer-to-peer match on its servers. The default value is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)