<!--
{
  "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/GKMatchmakerViewController/isHosted",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKMatchmakerViewController(py)hosted"
  },
  "title" : "isHosted"
}
-->

# isHosted

A Boolean value that indicates whether the match is hosted or peer-to-peer.

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

## Discussion

The value of this property determines which delegate methods GameKit calls when players are found.

If you host your own game, set this property to `true,` and then GameKit calls the [`matchmakerViewController(_:didFindHostedPlayers:)`](/documentation/GameKit/GKMatchmakerViewControllerDelegate/matchmakerViewController(_:didFindHostedPlayers:)) delegate method when it finds players. You must provide a server that hosts the players in the match.

Otherwise, set this property to <doc://com.apple.documentation/documentation/Swift/false>, and then GameKit calls the [`matchmakerViewController(_:didFind:)`](/documentation/GameKit/GKMatchmakerViewControllerDelegate/matchmakerViewController(_:didFind:)) delegate method when it finds players.

---

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)