How do i check if there are hosts and connect to them, else start hosting?

title says everything

To find servers online, you will always need a Matchmaking service.
The only exception are LAN-only games (same subnet). In a LAN environment you can use a form of network discovery to broadcast running servers to other machines.

Unity’s matchmaking service is called Matchmaker. It works with either Multiplay Hosting (dedicated servers) or the Relay service for client-hosted games.

1 Like