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

# isHosted

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

## Declaration

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

## Mentioned in

Finding players for custom server-based games

## Discussion

Discussion If the value of this property is true, you host the game on your own servers. If the value is false, Game Center hosts the peer-to-peer match on its servers. The default value is false.

## See Also

### Getting Properties

- [sender](gamekit/gkinvite/sender.md)
- [playerAttributes](gamekit/gkinvite/playerattributes.md)
- [playerGroup](gamekit/gkinvite/playergroup.md)
- [inviter](gamekit/gkinvite/inviter.md)
