Search Unity

MasterServer.RegisterHost doesn't work with StartHost

Discussion in 'Multiplayer' started by Mr-FarePlay, Jun 8, 2017.

  1. Mr-FarePlay

    Mr-FarePlay

    Joined:
    Nov 22, 2015
    Posts:
    4
    Good day devs,

    I'm looking at the examples on how to use MasterServer.RegisterHost.

    All the examples follow this method:

    Network.InitializeServer
    MasterServer.RegisterHost

    Which works. My issue here is that I want to use it with StartHost.

    I get this error when I call MasterServer.RegisterHost after StartHost:

    [It's not possible to register a host until it is running.]


    I've already checked and made sure the host is active and listing before I call RegisterHost. But I still get the same error.

    Any help would be appreciated.

    Cheers :)