---
title: isHosted
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkmatchmakerviewcontroller/ishosted
---

# isHosted

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

## Declaration

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

## Mentioned in

Finding players for custom server-based games

## Discussion

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:) delegate method when it finds players. You must provide a server that hosts the players in the match. Otherwise, set this property to false, and then GameKit calls the matchmakerViewController(_:didFind:) delegate method when it finds players.

## See Also

### Hosting matches

- [setHostedPlayer(_:didConnect:)](gamekit/gkmatchmakerviewcontroller/sethostedplayer(_:didconnect:).md)
